summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-08-11 04:24:34 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-08-11 04:24:34 +0000
commitcd28123a2c77a86bd3079d0bff9f940c7270fdb6 (patch)
treeb6f0ea1668d5d90179278262bd7db45772e86bc6
parent1e9c1022d083eab04a1d88cf3f92a6f2fc2b0791 (diff)
downloadperl-cd28123a2c77a86bd3079d0bff9f940c7270fdb6.tar.gz
Explain the 'Wide character in print' a bit more.
p4raw-id: //depot/perl@20608
-rw-r--r--pod/perldiag.pod9
1 files changed, 6 insertions, 3 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod
index 30ea1ff170..2d29e70821 100644
--- a/pod/perldiag.pod
+++ b/pod/perldiag.pod
@@ -4467,9 +4467,12 @@ So put in parentheses to say what you really mean.
=item Wide character in %s
(W utf8) Perl met a wide character (>255) when it wasn't expecting
-one. This warning is by default on for I/O (like print) but can be
-turned off by C<no warnings 'utf8';>. You are supposed to explicitly
-mark the filehandle with an encoding, see L<open> and L<perlfunc/binmode>.
+one. This warning is by default on for I/O (like print). The easiest
+way to quiet this warning is simply to add the C<:utf8> layer to the
+output, e.g. C<binmode STDOUT, ':utf8'>. Another way to turn off the
+warning is to add C<no warnings 'utf8';> but that is often closer to
+cheating. In general, you are supposed to explicitly mark the
+filehandle with an encoding, see L<open> and L<perlfunc/binmode>.
=item Within []-length '%c' not allowed