1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-22 18:35:09 +00:00

(encode_coding_utf_16): Fix checking of an Unicode character.

This commit is contained in:
Kenichi Handa 2009-08-27 07:30:51 +00:00
parent 652cc1a2e6
commit 60afa08d41
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
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.

View File

@ -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)