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
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
# is what matters.
/^([[:digit:]]+)/;
EXPECT
+######## [perl #20667] unicode regex vs non-unicode regex
+$toto = 'Hello';
+$toto =~ /\w/; # this line provokes the problem!
+$name = 'A B';
+# utf8::upgrade($name) if @ARGV;
+if ($name =~ /(\p{IsUpper}) (\p{IsUpper})/){
+ print "It's good! >$1< >$2<\n";
+} else {
+ print "It's not good...\n";
+}
+EXPECT
+It's good! >A< >B<