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:
parent
652cc1a2e6
commit
60afa08d41
@ -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.
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user