diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-08-15 13:26:00 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-08-15 13:26:00 +0000 |
commit | 54d2e5f13b773fb3b3721d846d811605251d51e0 (patch) | |
tree | 1eb3e0d84fdebd089ae682920a02013ed9b78ed4 /t | |
parent | 87032ba1356fb03b9506881b2d4a3fca8143cce9 (diff) | |
download | perl-54d2e5f13b773fb3b3721d846d811605251d51e0.tar.gz |
The #11673 necessitated a test tweak.
p4raw-id: //depot/perl@11682
Diffstat (limited to 't')
-rwxr-xr-x | t/io/utf8.t | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/t/io/utf8.t b/t/io/utf8.t index 0d5700dff5..1a7d27f479 100755 --- a/t/io/utf8.t +++ b/t/io/utf8.t @@ -138,7 +138,11 @@ print "ok 21\n"; # Now let's make it suffer. open F, ">", "a" or die $!; my $w; -eval {local $SIG{__WARN__} = sub { $w = $_[0] }; print F $a; }; +{ + use warnings 'utf8'; + local $SIG{__WARN__} = sub { $w = $_[0] }; + print F $a; +} print "not " if ($@ || $w !~ /Wide character in print/i); print "ok 22\n"; } |