This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
No utf8 warnings without use warnings.
authorJarkko Hietaniemi <jhi@iki.fi>
Wed, 10 Sep 2003 07:16:52 +0000 (07:16 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Wed, 10 Sep 2003 07:16:52 +0000 (07:16 +0000)
p4raw-id: //depot/perl@21154

t/io/utf8.t

index aade3bd..6806736 100755 (executable)
@@ -314,8 +314,9 @@ ok( 1 );
 # sysread() and syswrite() tested in lib/open.t since Fcntl is used
 
 {
-    # <FH> on a :utf8 stream should complain immediately
+    # <FH> on a :utf8 stream should complain immediately with -w
     # if it finds bad UTF-8 (:encoding(utf8) works this way)
+    use warnings 'utf8';
     local $SIG{__WARN__} = sub { $@ = shift };
     open F, ">a";
     binmode F;