This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3b4e16
)
No utf8 warnings without use warnings.
author
Jarkko Hietaniemi
<jhi@iki.fi>
Wed, 10 Sep 2003 07:16:52 +0000
(07:16 +0000)
committer
Jarkko Hietaniemi
<jhi@iki.fi>
Wed, 10 Sep 2003 07:16:52 +0000
(07:16 +0000)
p4raw-id: //depot/perl@21154
t/io/utf8.t
patch
|
blob
|
blame
|
history
diff --git
a/t/io/utf8.t
b/t/io/utf8.t
index
aade3bd
..
6806736
100755
(executable)
--- a/
t/io/utf8.t
+++ b/
t/io/utf8.t
@@
-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;