This stops test failures when perl is run with -C under utf-8 locales.
However this is only a partial solution, since it will prevent the
open pragma from being properly deparsed. Probably ${^OPEN} should
be handled separately.
p4raw-id: //depot/perl@31894
my ($from, $to, $indent) = @_;
my @decls;
for my $key (keys %$to) {
+ next if $key =~ /^open[<>]$/;
if (!defined $from->{$key} or $from->{$key} ne $to->{$key}) {
push @decls, qq(\$^H{'$key'} = q($to->{$key}););
}
}
for my $key (keys %$from) {
+ next if $key =~ /^open[<>]$/;
if (!exists $to->{$key}) {
push @decls, qq(delete \$^H{'$key'};);
}