summaryrefslogtreecommitdiff
path: root/pp.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 /pp.c
parent803ff55641d8801318ea5097e11eee271b53a17a (diff)
downloadperl-699c3c3425f2b312fd24050e39cded6eb124bea2.tar.gz
One more UTF-8 fix from Inaba Hiroto.
p4raw-id: //depot/perl@8415
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pp.c b/pp.c
index 2d49cf15c6..784c7bf4b1 100644
--- a/pp.c
+++ b/pp.c
@@ -5873,7 +5873,8 @@ PP(pp_split)
s = m;
}
}
- else if ((rx->reganch & RE_USE_INTUIT) && !rx->nparens
+ else if (do_utf8 == ((rx->reganch & ROPT_UTF8) != 0) &&
+ (rx->reganch & RE_USE_INTUIT) && !rx->nparens
&& (rx->reganch & ROPT_CHECK_ALL)
&& !(rx->reganch & ROPT_ANCH)) {
int tail = (rx->reganch & RE_INTUIT_TAIL);