summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-01-01 18:27:50 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-01-01 18:27:50 +0000
commitac7e0132fa3fb9026334583d81fcfe7cfe71f446 (patch)
tree585cae4c8711231690ecd63879e82287400db073 /regcomp.c
parent609ff63dcc9d67d1df366f7c5bca220928c02850 (diff)
downloadperl-ac7e0132fa3fb9026334583d81fcfe7cfe71f446.tar.gz
Now that to_utf8_fold() was fixed.
p4raw-id: //depot/perl@14004
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/regcomp.c b/regcomp.c
index 9dad63181f..a61d03996d 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -3132,9 +3132,7 @@ tryagain:
p = regwhite(p, RExC_end);
if (UTF && FOLD) {
/* Prime the casefolded buffer. */
- toFOLD_uni(ender, tmpbuf, &foldlen);
- /* Need to peek at the first character. */
- ender = utf8_to_uvchr(tmpbuf, 0);
+ ender = toFOLD_uni(ender, tmpbuf, &foldlen);
}
if (ISMULT2(p)) { /* Back off on ?+*. */
if (len)