From: tomo Date: Wed, 11 Jul 2001 07:11:01 +0000 (+0000) Subject: (detect_coding_big5): Fixed problem in XEmacs UTF-2000 about private area. X-Git-Tag: r21-2-38-utf-2000-0_17-1~366 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17154b8643a42a405158c07a3dbabeb83144c438;p=chise%2Fxemacs-chise.git- (detect_coding_big5): Fixed problem in XEmacs UTF-2000 about private area. --- diff --git a/src/text-coding.c b/src/text-coding.c index 4243eac..7ba047e 100644 --- a/src/text-coding.c +++ b/src/text-coding.c @@ -3550,7 +3550,13 @@ detect_coding_big5 (struct detection_state *st, const Extbyte *src, size_t n) if (c < 0x40 || (c >= 0x80 && c <= 0xA0)) return 0; } - else if (c >= 0xA1) + else if ( +#ifdef UTF2000 + c >= 0x81 +#else + c >= 0xA1 +#endif + ) st->big5.in_second_byte = 1; } return CODING_CATEGORY_BIG5_MASK;