Commit 60afa08d authored by Kenichi Handa's avatar Kenichi Handa

(encode_coding_utf_16): Fix checking of an Unicode character.

parent 652cc1a2
2009-08-27 Kenichi Handa <handa@m17n.org>
* coding.c (encode_coding_utf_16): Fix checking of a Unicode
character.
* cmds.c (Fself_insert_command): Avoid unnecessay
unibyte->multibyte conversion.
......
......@@ -1858,7 +1858,7 @@ encode_coding_utf_16 (coding)
{
ASSURE_DESTINATION (safe_room);
c = *charbuf++;
if (c >= MAX_UNICODE_CHAR)
if (c > MAX_UNICODE_CHAR)
c = coding->default_char;
if (c < 0x10000)
......
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