p4raw-id: //depot/perl@29195
plan tests => (scalar(@prgs)-$files);
-my $utf8_ok = exists $ENV{PERL_UNICODE} && (
- $ENV{PERL_UNICODE} =~ m{[Dio]}
- || ($ENV{PERL_UNICODE} eq ""
- && ($ENV{LC_ALL} =~ /\butf-?8\b/i || $ENV{LANG} =~ /\butf-?8\b/i))
-);
-
for (@prgs){
unless (/\n/)
{
$switch = $&;
}
my($prog,$expected) = split(/\nEXPECT(?:\n|$)/, $_, 2);
- $expected =~ s{\b
- UTF8 \s*
- \? \s* '(.*?)'
- : \s* '(.*?)'
- }{$utf8_ok?$1:$2}gexs;
my ($todo, $todo_reason);
$todo = $prog =~ s/^#\s*TODO(.*)\n//m and $todo_reason = $1;