summaryrefslogtreecommitdiff
path: root/utf8.h
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-02-19 01:55:14 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-02-19 01:55:14 +0000
commit3ec562b0bffb8b8b48df56ef7460b59729c19345 (patch)
treec085090f909cee31ff07f8c4df4e2a12765ec422 /utf8.h
parenta6da3000f891055d63501a206d4a09ca94f64209 (diff)
downloadperl-3ec562b0bffb8b8b48df56ef7460b59729c19345.tar.gz
Not extending enough.
p4raw-id: //depot/perl@14758
Diffstat (limited to 'utf8.h')
-rw-r--r--utf8.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/utf8.h b/utf8.h
index 49531a99ef..feff1b4696 100644
--- a/utf8.h
+++ b/utf8.h
@@ -138,9 +138,11 @@ END_EXTERN_C
/* how wide can a single UTF8 encoded character become */
#define UTF8_MAXLEN 13
/* how wide a character can become when upper/lowercased */
-#define UTF8_MAXLEN_UCLC (UTF8_MAXLEN*2)
+#define UTF8_MAXLEN_UCLC_MULT 3
+#define UTF8_MAXLEN_UCLC (UTF8_MAXLEN*UTF8_MAXLEN_UCLC_MULT)
/* how wide a character can become when casefolded */
-#define UTF8_MAXLEN_FOLD (UTF8_MAXLEN*3)
+#define UTF8_MAXLEN_FOLD_MULT 3
+#define UTF8_MAXLEN_FOLD (UTF8_MAXLEN*UTF8_MAXLEN_FOLD_MULT)
#define IN_BYTES (PL_curcop->op_private & HINT_BYTES)
#define DO_UTF8(sv) (SvUTF8(sv) && !IN_BYTES)