diff options
Diffstat (limited to 'pod/perlrun.pod')
-rw-r--r-- | pod/perlrun.pod | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/pod/perlrun.pod b/pod/perlrun.pod index e38ad3d152..a83acd6ea8 100644 --- a/pod/perlrun.pod +++ b/pod/perlrun.pod @@ -270,8 +270,8 @@ An alternate delimiter may be specified using B<-F>. The C<-C> flag controls some Unicode of the Perl Unicode features. As of 5.8.1, the C<-C> can be followed either by a number or a list -of option letters. The letters and their numeric values are as follows; -listing the letters is equal to summing the numbers. +of option letters. The letters, their numeric values, and affects +are as follows; listing the letters is equal to summing the numbers. I 1 STDIN is assumed to be in UTF-8 O 2 STDOUT will be in UTF-8 @@ -291,20 +291,19 @@ For example, C<-COE> and C<-C6> will both turn on UTF-8-ness on both STDOUT and STDERR. Repeating letters is just redundant, not cumulative nor toggling. -The C<-C> on its own (not followed by any number or option list), -or an empty string as the C<$ENV{PERL_UNICODE}), has the same effect +C<-C> on its own (not followed by any number or option list), or the +empty string C<""> for the C<$ENV{PERL_UNICODE}, has the same effect as <-CSDL>. In other words, the standard I/O handles and the default C<open()> layer are UTF-8-fied B<but> only if the locale environment -variables indicate a UTF-8 locale. This behavior follows the I<implicit> -UTF-8 behaviour of Perl 5.8.0. +variables indicate a UTF-8 locale. This behaviour follows the +I<implicit> UTF-8 behaviour of Perl 5.8.0. You can use C<-C0> to explicitly disable all the above Unicode features. -See L<perluniintro>, L<perlfunc/open>, and L<open> for more information. +See L<perlfunc/open>, and L<open> for more information. -The read-only magic variable C<${^UNICODE}> reflects the state of this -setting, see L<perlvar/"${^UNICODE}">. (Another way of setting this -variable is to set the environment variable PERL_UNICODE.) +The read-only magic variable C<${^UNICODE}> reflects the numeric value +of this setting, see L<perlvar/"${^UNICODE}">. (In Perls earlier than 5.8.1 the C<-C> switch was a Win32-only switch that enabled the use of Unicode-aware "wide system call" Win32 APIs. |