diff options
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclUniData.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/generic/tclUniData.c b/generic/tclUniData.c index 566e694..fcd81bb 100644 --- a/generic/tclUniData.c +++ b/generic/tclUniData.c @@ -1334,6 +1334,12 @@ static CONST int groups[] = { -2768575, 1859714, -9044927, -10823615, 18, 17, 10305, 10370 }; +#if UTF_MAX_LEN > 3 +# define UNICODE_OUT_OF_RANGE(ch) (((ch) & 0x1fffff) >= 0x2fa20) +#else +# define UNICODE_OUT_OF_RANGE(ch) (((ch) & 0x1f0000) != 0) +#endif + /* * The following constants are used to determine the category of a * Unicode character. |