From 17154b8643a42a405158c07a3dbabeb83144c438 Mon Sep 17 00:00:00 2001 From: tomo Date: Wed, 11 Jul 2001 07:11:01 +0000 Subject: [PATCH] (detect_coding_big5): Fixed problem in XEmacs UTF-2000 about private area. --- src/text-coding.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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; -- 1.7.10.4