diff options
| author | Kenichi Handa | 2004-03-04 07:49:18 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2004-03-04 07:49:18 +0000 |
| commit | 29f7ffd0429947d6b6b393e6c8019d9b4a04b00b (patch) | |
| tree | 758e5ca7b6f46a177efd24992429339f45ab1d03 /src | |
| parent | 24864b6561733ba7086a06dcfed2a91fbb7fc1de (diff) | |
| download | emacs-29f7ffd0429947d6b6b393e6c8019d9b4a04b00b.tar.gz emacs-29f7ffd0429947d6b6b393e6c8019d9b4a04b00b.zip | |
(decode_coding_utf_16): Fix handling of surrogate pare.
Diffstat (limited to 'src')
| -rw-r--r-- | src/coding.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coding.c b/src/coding.c index 457b1ac7801..d95da9bf9eb 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -1495,7 +1495,7 @@ decode_coding_utf_16 (coding) | |||
| 1495 | { | 1495 | { |
| 1496 | c = ((surrogate - 0xD800) << 10) | (c - 0xDC00); | 1496 | c = ((surrogate - 0xD800) << 10) | (c - 0xDC00); |
| 1497 | CODING_UTF_16_SURROGATE (coding) = surrogate = 0; | 1497 | CODING_UTF_16_SURROGATE (coding) = surrogate = 0; |
| 1498 | *charbuf++ = c; | 1498 | *charbuf++ = 0x10000 + c; |
| 1499 | } | 1499 | } |
| 1500 | } | 1500 | } |
| 1501 | else | 1501 | else |