summaryrefslogtreecommitdiff
path: root/lib/open.t
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-12-01 16:29:27 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-12-01 16:29:27 +0000
commit24c435326ff7474b83b7249c5c50531eeeffe72f (patch)
tree63a51a69738282869a87e241c940c5ba7b88473f /lib/open.t
parenta397c3d90f2714d67e8c8dc3e4dfc0b40f61e44e (diff)
downloadperl-24c435326ff7474b83b7249c5c50531eeeffe72f.tar.gz
Need to hide behind an eval to avoid a warning
about :utf8 on non-perlio configs. p4raw-id: //depot/perl@13405
Diffstat (limited to 'lib/open.t')
-rw-r--r--lib/open.t2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/open.t b/lib/open.t
index 9f1a8607f2..3a42ce5b15 100644
--- a/lib/open.t
+++ b/lib/open.t
@@ -73,6 +73,7 @@ is( $^H{'open_IO'}, 'crlf', 'should record last layer set in %^H' );
SKIP: {
skip("no perlio, no :utf8", 4) unless $Config{'useperlio'};
+ eval <<EOE;
use open ':utf8';
open(O, ">utf8");
print O chr(0x100);
@@ -80,6 +81,7 @@ SKIP: {
open(I, "<utf8");
is(ord(<I>), 0x100, ":utf8 single wide character round-trip");
close I;
+EOE
open F, ">a";
@a = map { chr(1 << ($_ << 2)) } 0..5; # 0x1, 0x10, .., 0x100000