diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2003-01-16 01:58:39 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-01-16 01:58:39 +0000 |
commit | fde18df140d5f64815bdd632a127ecd5ce3d97fa (patch) | |
tree | 80f64f24787f44508939d3f4b0912ac97d9cf9dc /pod/perlrun.pod | |
parent | cd2d1bacbf7960cece81f64bfbaaedda360c78aa (diff) | |
download | perl-fde18df140d5f64815bdd632a127ecd5ce3d97fa.tar.gz |
Make the locale-induced UTF-8-ification of STD fhs
and the default file open layer explicit (either -C
or PERL_UTF8_LOCALE), instead of implicit (and unasked-for).
p4raw-id: //depot/perl@18490
Diffstat (limited to 'pod/perlrun.pod')
-rw-r--r-- | pod/perlrun.pod | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/pod/perlrun.pod b/pod/perlrun.pod index 72517122a4..46e18493d4 100644 --- a/pod/perlrun.pod +++ b/pod/perlrun.pod @@ -266,11 +266,21 @@ An alternate delimiter may be specified using B<-F>. =item B<-C> -enables Perl to use the native wide character APIs on the target system. -The magic variable C<${^WIDE_SYSTEM_CALLS}> reflects the state of -this switch. See L<perlvar/"${^WIDE_SYSTEM_CALLS}">. - -This feature is currently only implemented on the Win32 platform. +enables Perl to use the Unicode APIs on the target system. + +As of Perl 5.8.1, if C<-C> is used and the locale settings (the LC_ALL, +LC_CTYPE, and LANG environment variables) indicate a UTF-8 locale, +the STDIN is expected to be in UTF-8, the STDOUT and STDERR are +expected to be in UTF-8, and C<:utf8> is the default file open layer. +See L<perluniintro>, L<perlfunc/open>, and L<open> for more information. +The magic variable C<${^UTF8_LOCALE}> reflects this state, +see L<perlvar/"${^UTF8_LOCALE}">. (Another way of setting this +variable is to set the environment variable PERL_UTF8_LOCALE.) + +(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. +This feature was practically unused, however, and the command line +switch was therefore "recycled".) =item B<-c> |