summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-12-30 21:12:25 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-12-30 21:12:25 +0000
commit2ddfca77c091e81a547f3b4f6325ece2309ec9f0 (patch)
tree16102c2e9752216eab9ab35b563e9782502ed95e /regexec.c
parent254ba52af7d39101b8ee76681bf95a1a95ebd042 (diff)
downloadperl-2ddfca77c091e81a547f3b4f6325ece2309ec9f0.tar.gz
Fix all the I case foldings as per CaseFold.txt.
p4raw-id: //depot/perl@13964
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/regexec.c b/regexec.c
index 3f1449dbb8..3860fd29d1 100644
--- a/regexec.c
+++ b/regexec.c
@@ -995,8 +995,9 @@ S_find_byclass(pTHX_ regexp * prog, regnode *c, char *s, char *strend, char *sta
UV f;
uvchr_to_utf8(tmpbuf, c);
- f = to_utf8_fold(tmpbuf, foldbuf, &foldlen);
-
+ to_utf8_fold(tmpbuf, foldbuf, &foldlen);
+ f = utf8_to_uvchr(foldbuf, 0);
+
if (c == (UV)UNICODE_GREEK_CAPITAL_LETTER_SIGMA ||
c == (UV)UNICODE_GREEK_SMALL_LETTER_FINAL_SIGMA)
c = (UV)UNICODE_GREEK_SMALL_LETTER_SIGMA;