(from Craig Berry).
p4raw-id: //depot/perl@19130
print $obj->str, "\n";
$obj->set("¥Æ¥¹¥Èʸ»úÎó");
print $obj->str, "\n";
+close STDOUT;
my $cmp = compare_text($file0, $file1);
is($cmp, 0, "encoding vs. STDOUT");
is ($cmp[$i++], $_, "encoding vs. STDIN - $i");
}
-close STDOUT;
unlink $file1 unless $cmp;
__END__