$obj->set("¥Æ¥¹¥Èʸ»úÎó");
print $obj->str, "\n";
+# I have tested and found "unless $^O eq 'freebsd'" is not
+# necessary but I will leave it for the sake of Enache -- dankogai
+# Please do not move this to a point after the comparison -- Craig Berry
+close STDOUT unless $^O eq 'freebsd';
+
my $cmp = compare_text($file0, $file1);
is($cmp, 0, "encoding vs. STDOUT");
is ($cmp[$i++], $_, "encoding vs. STDIN - $i");
}
-# I have tested and found "unless $^O eq 'freebsd'" is not
-# necessary but I will leave it for the sake of Enache -- dankogai
-close STDOUT unless $^O eq 'freebsd';
unlink $file1 unless $cmp;
__END__