X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=src%2Ftext-coding.c;h=9b6e7dc4e4c9ea18ebd0c2ba3e77aca7152d26fa;hb=1904dd422ef23143c8db3c38267cc5a0304fb227;hp=7be2d3eb7ea1d25ad15567fea542977d8d2a6c19;hpb=4ba75b78e2d9780611ceea1aa95f0ac18fc6a29d;p=chise%2Fxemacs-chise.git.1 diff --git a/src/text-coding.c b/src/text-coding.c index 7be2d3e..9b6e7dc 100644 --- a/src/text-coding.c +++ b/src/text-coding.c @@ -3295,6 +3295,7 @@ decode_add_er_char (struct decoding_stream *str, Emchar c, pat = ret; else continue; + pat = Fregexp_quote (pat); cell = Fcdr (cell); cell = Fcdr (cell); @@ -4609,7 +4610,7 @@ char_encode_utf8 (struct encoding_stream *str, Emchar ch, = CODING_SYSTEM_ISO2022_INITIAL_CHARSET (str->codesys, 0); int code_point = charset_code_point (ucs_ccs, ch, 0); - if ( (code_point < 0) || (code_point > 0x10FFFF) ) + if ( (code_point < 0) || (code_point > 0xEFFFF) ) { Lisp_Object map = CODING_SYSTEM_ISO2022_INITIAL_CHARSET (str->codesys, 1);