(detect_coding_big5): Fixed problem in XEmacs UTF-2000 about private area.
authortomo <tomo>
Wed, 11 Jul 2001 07:11:01 +0000 (07:11 +0000)
committertomo <tomo>
Wed, 11 Jul 2001 07:11:01 +0000 (07:11 +0000)
src/text-coding.c

index 4243eac..7ba047e 100644 (file)
@@ -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;