HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
24864b6
)
(decode_coding_utf_16): Fix handling of surrogate pare.
author
Kenichi Handa
<handa@m17n.org>
Thu, 4 Mar 2004 07:49:18 +0000
(07:49 +0000)
committer
Kenichi Handa
<handa@m17n.org>
Thu, 4 Mar 2004 07:49:18 +0000
(07:49 +0000)
src/coding.c
patch
|
blob
|
blame
|
history
diff --git
a/src/coding.c
b/src/coding.c
index
457b1ac
..
d95da9b
100644
(file)
--- a/
src/coding.c
+++ b/
src/coding.c
@@
-1495,7
+1495,7
@@
decode_coding_utf_16 (coding)
{
c = ((surrogate - 0xD800) << 10) | (c - 0xDC00);
CODING_UTF_16_SURROGATE (coding) = surrogate = 0;
- *charbuf++ = c;
+ *charbuf++ =
0x10000 +
c;
}
}
else