my $pfile = File::Spec->catfile($dir,"$$.pio");
# first create a file without perlio
- open $fh, ">", $sfile or die "$sfile :$!";
- binmode $fh;
- print $fh &encode($e, $utext, 0);
- close $fh;
+ dump2file($sfile, &encode($e, $utext, 0));
-
+
# then create a file via perlio without autoflush
- # TODO:{
- # local $TODO = "perlio broken";
- # todo_skip "$e: !perlio_ok", 1 unless perlio_ok($e);
+ SKIP:{
+ skip "$e: !perlio_ok", 1 unless perlio_ok($e) or $DEBUG;
open $fh, ">:encoding($e)", $pfile or die "$sfile : $!";
$fh->autoflush(0);
print $fh $utext;