(decode_coding_utf_16): Fix handling of surrogate pare.
This commit is contained in:
parent
24864b6561
commit
29f7ffd042
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue