diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-01-12 15:33:41 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-01-12 15:33:41 +0000 |
commit | 699c3c3425f2b312fd24050e39cded6eb124bea2 (patch) | |
tree | 081ba5f8f2e13a686f3a60527c1736bac21a0e4d /regexec.c | |
parent | 803ff55641d8801318ea5097e11eee271b53a17a (diff) | |
download | perl-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.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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; |