From 0cbb0d1c451c164beae371763b59ce64347f5ce5 Mon Sep 17 00:00:00 2001 From: tomo Date: Fri, 9 Apr 2004 12:14:30 +0000 Subject: [PATCH] (char_encode_utf8): Try to use entity-references for U-000F0000 ... U-0010FFFF. --- src/text-coding.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/text-coding.c b/src/text-coding.c index 7be2d3e..4b8f2d2 100644 --- a/src/text-coding.c +++ b/src/text-coding.c @@ -4609,7 +4609,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); -- 1.7.10.4