Change 20608 by [EMAIL PROTECTED] on 2003/08/11 04:24:34
Explain the 'Wide character in print' a bit more.
Affected files ...
... //depot/perl/pod/perldiag.pod#353 edit
Differences ...
==== //depot/perl/pod/perldiag.pod#353 (text) ====
Index: perl/pod/perldiag.pod
--- perl/pod/perldiag.pod#352~20135~ Thu Jul 10 17:03:33 2003
+++ perl/pod/perldiag.pod Sun Aug 10 21:24:34 2003
@@ -4467,9 +4467,12 @@
=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
End of Patch.