diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2003-02-04 11:04:25 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-02-04 11:04:25 +0000 |
commit | d12e50cf45149336efec3161d04293f1ae511ed7 (patch) | |
tree | ce843752d4a3969989647728a3fd93a29ebf821a /regexec.c | |
parent | 68b871bb4a348d153c096d0edd21e3147f4c7025 (diff) | |
download | perl-d12e50cf45149336efec3161d04293f1ae511ed7.tar.gz |
Fix "[perl #20667] unicode regex vs non-unicode regex".
The PL_regdata was not set up (S_cache_re()) before it
was needed (S_reginclass()). The test put in fresh_perl.t
because we need a pristine state to start.
p4raw-id: //depot/perl@18653
Diffstat (limited to 'regexec.c')
-rw-r--r-- | regexec.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -856,6 +856,7 @@ Perl_re_intuit_start(pTHX_ regexp *prog, SV *sv, char *strpos, PL_regdata = prog->data; PL_bostr = startpos; } + S_cache_re(prog); s = find_byclass(prog, prog->regstclass, s, endpos, startpos, 1); if (!s) { #ifdef DEBUGGING |