Commit 29f7ffd0 authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(decode_coding_utf_16): Fix handling of surrogate pare.

parent 24864b65
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment