summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-01-12 15:33:41 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-01-12 15:33:41 +0000
commit699c3c3425f2b312fd24050e39cded6eb124bea2 (patch)
tree081ba5f8f2e13a686f3a60527c1736bac21a0e4d /regexec.c
parent803ff55641d8801318ea5097e11eee271b53a17a (diff)
downloadperl-699c3c3425f2b312fd24050e39cded6eb124bea2.tar.gz
One more UTF-8 fix from Inaba Hiroto.
p4raw-id: //depot/perl@8415
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/regexec.c b/regexec.c
index dca2a44be6..e85f45f4ed 100644
--- a/regexec.c
+++ b/regexec.c
@@ -443,8 +443,6 @@ Perl_re_intuit_start(pTHX_ regexp *prog, SV *sv, char *strpos,
#endif
restart:
- other_last = Nullch;
-
/* Find a possible match in the region s..strend by looking for
the "check" substring in the region corrected by start/end_shift. */
if (flags & REXEC_SCREAM) {
@@ -1462,7 +1460,8 @@ Perl_regexec_flags(pTHX_ register regexp *prog, char *stringarg, register char *
PL_reg_ganch = strbeg;
}
- if (!(flags & REXEC_CHECKED) && prog->check_substr != Nullsv) {
+ if (do_utf8 == (UTF!=0) &&
+ !(flags & REXEC_CHECKED) && prog->check_substr != Nullsv) {
re_scream_pos_data d;
d.scream_olds = &scream_olds;