summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-03-09 10:54:10 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-03-09 10:54:10 +0000
commit16e1b94401335fe86d42338fc14a6680fc469ab0 (patch)
tree2bd9c701593ff14adfbad22fe6abcaf18787a499 /regexec.c
parentc517dc2b8939cf1b60644570194e6918e1629206 (diff)
downloadperl-16e1b94401335fe86d42338fc14a6680fc469ab0.tar.gz
From Inaba Hiroto: re_intuit_start set a value to
PL_bostr before calling find_byclass when regexp has ROPT_UTF8 flag on. But right value for PL_bostr is set before re_intuit_start is called. PL_regdata is always assigned by cache_re(), so the whole if(prog->reganch & ROPT_UTF8){} can be deleted. p4raw-id: //depot/perl@18858
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/regexec.c b/regexec.c
index 6d18de4a7c..4692dcdf04 100644
--- a/regexec.c
+++ b/regexec.c
@@ -852,10 +852,6 @@ Perl_re_intuit_start(pTHX_ regexp *prog, SV *sv, char *strpos,
char *startpos = strbeg;
t = s;
- if (prog->reganch & ROPT_UTF8) {
- PL_regdata = prog->data;
- PL_bostr = startpos;
- }
cache_re(prog);
s = find_byclass(prog, prog->regstclass, s, endpos, startpos, 1);
if (!s) {