summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2011-11-08 22:20:37 -0700
committerKarl Williamson <public@khwilliamson.com>2011-11-08 22:38:39 -0700
commitf26f1b9ce33a811c1a4ea00612a18101543a46fd (patch)
treee81a6ab2bf4bd4903b9402050a7e526662f74dab /regcomp.c
parent686c8a985d1c5ce0dbb2478ca68e334a09ce6d0b (diff)
downloadperl-f26f1b9ce33a811c1a4ea00612a18101543a46fd.tar.gz
regcomp.c: Change char used to force reading in fold swashes
Future commits will change things so that a latin1 character no longer will go out to disk to load a swash.
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/regcomp.c b/regcomp.c
index f9bf71792c..1d1bf27a2b 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -10454,7 +10454,10 @@ parseit:
if (! PL_utf8_tofold) {
U8 dummy[UTF8_MAXBYTES+1];
STRLEN dummy_len;
- to_utf8_fold((U8*) "A", dummy, &dummy_len);
+
+ /* This particular string is above \xff in both UTF-8 and
+ * UTFEBCDIC */
+ to_utf8_fold((U8*) "\xC8\x80", dummy, &dummy_len);
assert(PL_utf8_tofold); /* Verify that worked */
}
PL_utf8_foldclosures = _swash_inversion_hash(PL_utf8_tofold);