X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Futf8.t;h=acd64bfb213786f89277283e4fdefd4a8ad54d89;hb=411cc70a34f8fb9bcdf0a5306f32b31a7092ea1e;hp=19d88e53cf14bb252fd9a8d7cb00f52621ccd11c;hpb=48e3bbddf569369fe6921f305df6ab7290c91152;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/utf8.t b/lib/utf8.t index 19d88e5..acd64bf 100644 --- a/lib/utf8.t +++ b/lib/utf8.t @@ -1,9 +1,16 @@ #!./perl +my $has_perlio; + BEGIN { chdir 't' if -d 't'; @INC = '../lib'; require './test.pl'; + unless ($has_perlio = find PerlIO::Layer 'perlio') { + print <$progfile" or die "Can't open '$progfile': $!"; - binmode(P, ":bytes"); + binmode(P, ":bytes") if $has_perlio; print P $show, $prog, '; print $b' or die "Print to 'progfile' failed: $!"; close P or die "Can't close '$progfile': $!";