summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-04-01 02:30:18 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-04-01 02:30:18 +0000
commit0f247f17e3de88ea0e1d96101a0ef56a3b9a48a4 (patch)
tree3d872a7014f5102f2986753ad9cc00ce661d6eb7
parent6aaad45d9d816f32bcedb7f932be76e643f60317 (diff)
downloadperl-0f247f17e3de88ea0e1d96101a0ef56a3b9a48a4.tar.gz
Another UTF-8 locale tweak from Hugo.
p4raw-id: //depot/perl@15647
-rw-r--r--regexec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regexec.c b/regexec.c
index be4b362349..a2c0c72f73 100644
--- a/regexec.c
+++ b/regexec.c
@@ -1013,7 +1013,7 @@ S_find_byclass(pTHX_ regexp * prog, regnode *c, char *s, char *strend, char *sta
c1 = *(U8*)m;
c2 = PL_fold_locale[c1];
do_exactf:
- e = do_utf8 ? s + ln : strend - ln;
+ e = HOP3c(strend, -ln, s);
if (norun && e < s)
e = s; /* Due to minlen logic of intuit() */