diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-11-06 15:18:41 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-11-06 15:18:41 +0000 |
commit | 5ff6fc6d3e84f8da3756f8b5246037f5e410021e (patch) | |
tree | e444f6a59e0e558603b22a98b941eb0c9a68481f /regcomp.c | |
parent | c75a1282313a5941ab098f0e18a0c22e45fa4362 (diff) | |
download | perl-5ff6fc6d3e84f8da3756f8b5246037f5e410021e.tar.gz |
More UTF-8 EXACT tweaking, plus a forgotten UTF-8
toggle-on from the encoding pragma.
p4raw-id: //depot/perl@12872
Diffstat (limited to 'regcomp.c')
-rw-r--r-- | regcomp.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1764,7 +1764,7 @@ Perl_pregcomp(pTHX_ char *exp, char *xend, PMOP *pm) r->reganch = pm->op_pmflags & PMf_COMPILETIME; /* Again? */ pm->op_pmflags = RExC_flags16; if (UTF) - r->reganch |= ROPT_UTF8; + r->reganch |= ROPT_UTF8; /* Unicode in it? */ r->regstclass = NULL; if (RExC_naughty >= 10) /* Probably an expensive pattern. */ r->reganch |= ROPT_NAUGHTY; @@ -3168,6 +3168,7 @@ tryagain: RExC_emit += STR_SZ(newlen) - STR_SZ(oldlen); } else RExC_size += STR_SZ(newlen) - STR_SZ(oldlen); + RExC_utf8 = 1; } return(ret); |