From 88d45ddf4468f3b425e8e14172967041df8c8bdb Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Sat, 19 Mar 2011 15:31:30 -0600 Subject: [PATCH] utf8.h: A fold buffer needs to hold any utf8 char It can't just be large enough to hold the Unicode subset. --- utf8.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/utf8.h b/utf8.h index b872859..dc880d1 100644 --- a/utf8.h +++ b/utf8.h @@ -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 -- 2.7.4