Subject: | utf8 flag is lost in match object on v5.20+ |
#!/usr/bin/env perl
use utf8;
use Regexp::Grammars;
my $parser = qr{
<TOP>
<rule: TOP>.*
}xms;
'zażółć_gęślą_jaźń' =~ $parser;
print "parsed_as_utf8 = ", utf8::is_utf8( $/{'TOP'} );
__END__
On Perl 5.14.4 and 5.16.3 it correctly sets utf8 flag on captured string.
On Perl 5.20.1 and 5.21.5 flag is lost.