summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-08-12 22:46:12 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-08-12 22:46:12 +0000
commit84e09d5e9b0e8f355853f7c768e322224fb09c76 (patch)
tree5a2807645a588817ceccd451f28c08ab70e633e0 /regcomp.c
parentce6dce323a8d0f7e019f361b7d8ad8f9fea59359 (diff)
downloadperl-84e09d5e9b0e8f355853f7c768e322224fb09c76.tar.gz
Not quite so relicy as thought in #11651 (op/concat #4 and #5
stopped working). p4raw-id: //depot/perl@11653
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/regcomp.c b/regcomp.c
index 2b9fbbbb9d..2e37633e93 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -1666,7 +1666,11 @@ Perl_pregcomp(pTHX_ char *exp, char *xend, PMOP *pm)
if (exp == NULL)
FAIL("NULL regexp argument");
- RExC_utf8 = 0;
+ /* XXXX This looks very suspicious... */
+ if (pm->op_pmdynflags & PMdf_CMP_UTF8)
+ RExC_utf8 = 1;
+ else
+ RExC_utf8 = 0;
RExC_precomp = exp;
DEBUG_r(if (!PL_colorset) reginitcolors());