diff options
author | Karl Williamson <public@khwilliamson.com> | 2011-03-19 15:31:30 -0600 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2011-03-19 19:01:36 -0600 |
commit | 88d45ddf4468f3b425e8e14172967041df8c8bdb (patch) | |
tree | faad600fba905119c224209fdbe237e6aa6a3e59 /utf8.h | |
parent | 8f2655f724896bb844a84dc7cd36a7b2e5ed2ed3 (diff) | |
download | perl-88d45ddf4468f3b425e8e14172967041df8c8bdb.tar.gz |
utf8.h: A fold buffer needs to hold any utf8 char
It can't just be large enough to hold the Unicode subset.
Diffstat (limited to 'utf8.h')
-rw-r--r-- | utf8.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -226,8 +226,9 @@ Perl's extended UTF-8 means we can have start bytes up to FF. * version. An example of maximal expansion is the U+03B0 which * uppercases to U+03C5 U+0308 U+0301. The Unicode databases that * tell these things are UnicodeData.txt, CaseFolding.txt, and - * SpecialCasing.txt. */ -#define UTF8_MAXBYTES_CASE 6 + * SpecialCasing.txt. The value is 6 for strict Unicode characters, but it has + * to be as big as Perl allows for a single character */ +#define UTF8_MAXBYTES_CASE UTF8_MAXBYTES /* A Unicode character can fold to up to 3 characters */ #define UTF8_MAX_FOLD_CHAR_EXPAND 3 |