summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-02-03 17:04:34 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-02-03 17:04:34 +0000
commit9e8f19525ca9c19680d011d38a5ca4b6fd03b8cc (patch)
tree72602506be015030e20e91d27e569b52fdea0be8 /regcomp.c
parent483dd22054d0fee2b8a26b1ba538ef258bd82a3d (diff)
downloadperl-9e8f19525ca9c19680d011d38a5ca4b6fd03b8cc.tar.gz
EBCDIC: character classes must remap the low 256.
p4raw-id: //depot/perl@14534
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/regcomp.c b/regcomp.c
index bf4d226c69..c238f4eaa5 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -4065,9 +4065,9 @@ S_regclass(pTHX_ RExC_state_t *pRExC_state)
STRLEN foldlen;
UV f;
- uvchr_to_utf8(tmpbuf, value);
+ uvchr_to_utf8(tmpbuf, NATIVE_TO_UNI(value));
to_utf8_fold(tmpbuf, foldbuf, &foldlen);
- f = utf8_to_uvchr(foldbuf, 0);
+ f = UNI_TO_NATIVE(utf8_to_uvchr(foldbuf, 0));
/* If folding and foldable and a single
* character, insert also the folded version