summaryrefslogtreecommitdiff
path: root/pod/perluniintro.pod
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-02-17 05:31:18 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-02-17 05:31:18 +0000
commit8aa8f774be44d46814d4ddbad03e302f1eb37338 (patch)
treea0e9c495c2b59923162cb3fbc55ab3b677d8e19d /pod/perluniintro.pod
parentce81ff128f8fe94cb13ace56aa6d974168cbdf12 (diff)
downloadperl-8aa8f774be44d46814d4ddbad03e302f1eb37338.tar.gz
Doc tweaks (and one code tweak) based on Philip Newton's comments.
p4raw-id: //depot/perl@18731
Diffstat (limited to 'pod/perluniintro.pod')
-rw-r--r--pod/perluniintro.pod20
1 files changed, 9 insertions, 11 deletions
diff --git a/pod/perluniintro.pod b/pod/perluniintro.pod
index 33400fc7b6..f18cdeeb80 100644
--- a/pod/perluniintro.pod
+++ b/pod/perluniintro.pod
@@ -172,17 +172,15 @@ To output UTF-8, use the C<:utf8> output layer. Prepending
to this sample program ensures that the output is completely UTF-8,
and removes the program's warning.
-If your locale environment variables (C<LC_ALL>, C<LC_CTYPE>, C<LANG>)
-contain the strings 'UTF-8' or 'UTF8' (matched case-insensitively)
-B<and> you enable using UTF-8 either by using the C<-C> command line
-switch or by setting the PERL_UNICODE environment variable to an empty
-string, C<"">, (see L<perlrun> and the documentation for the C<-C>
-switch for more information about the possible values), then the
-default encoding of your STDIN, STDOUT, and STDERR, and of B<any
-subsequent file open>, will be UTF-8. Note that this means that Perl
-expects other software to work, too: if Perl has been led to believe
-that STDIN should be UTF-8, but then STDIN coming in from another
-command is not UTF-8, Perl will complain about the malformed UTF-8.
+You can enable automatic UTF-8-ification of your standard file
+handles, default C<open()> layer, and C<@ARGV> by using either
+the C<-C> command line switch or the C<PERL_UNICODE> environment
+variable, see L<perlrun> for the documentation of the C<-C> switch.
+
+Note that this means that Perl expects other software to work, too:
+if Perl has been led to believe that STDIN should be UTF-8, but then
+STDIN coming in from another command is not UTF-8, Perl will complain
+about the malformed UTF-8.
All features that combine Unicode and I/O also require using the new
PerlIO feature. Almost all Perl 5.8 platforms do use PerlIO, though: