(compile_extended_range): Use `CHAR_CHARSET_ID' instead of
authortomo <tomo>
Mon, 11 Oct 1999 21:46:34 +0000 (21:46 +0000)
committertomo <tomo>
Mon, 11 Oct 1999 21:46:34 +0000 (21:46 +0000)
`CHAR_LEADING_BYTE' in UTF-2000.

src/regex.c

index 375cdcf..c5cdf34 100644 (file)
@@ -3318,8 +3318,12 @@ compile_extended_range (CONST char **p_ptr, CONST char *pend, char *translate,
      ranges entirely within the first 256 chars. */
 
   if ((range_start >= 0x100 || range_end >= 0x100)
-      && CHAR_LEADING_BYTE (range_start) !=
-      CHAR_LEADING_BYTE (range_end))
+#ifdef UTF2000
+      && CHAR_CHARSET_ID (range_start) != CHAR_CHARSET_ID (range_end)
+#else
+      && CHAR_LEADING_BYTE (range_start) != CHAR_LEADING_BYTE (range_end)
+#endif
+      )
     return REG_ERANGESPAN;
 
   /* As advertised, translations only work over the 0 - 0x7F range.