diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2000-11-27 00:49:59 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-11-27 00:49:59 +0000 |
commit | 3cf03d68a41803c0fae7103299600bbe1e431014 (patch) | |
tree | 9286431096a1d79e3cdb6c00d8e0db991d9d31a0 /pod | |
parent | bda0f7a595ddfa8fb68d6c9db743f2822d220e6d (diff) | |
download | perl-3cf03d68a41803c0fae7103299600bbe1e431014.tar.gz |
Adjust the docs to agree with #7875.
p4raw-id: //depot/perl@7876
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perllocale.pod | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/pod/perllocale.pod b/pod/perllocale.pod index 79d7afe1f0..f0c64c7092 100644 --- a/pod/perllocale.pod +++ b/pod/perllocale.pod @@ -554,11 +554,11 @@ change the character used for the decimal point--perhaps from '.' to ','. These functions aren't aware of such niceties as thousands separation and so on. (See L<The localeconv function> if you care about these things.) -Output produced by print() is also affected by the -current locale: it depends on whether C<use locale> or C<no locale> is in -effect, and corresponds to what you'd get from printf() -in the "C" locale. The same is true for Perl's internal conversions -between numeric and string formats: +Output produced by print() is also affected by the current locale: it +depends on whether C<use locale> or C<no locale> is in effect, and +corresponds to what you'd get from printf() in the "C" locale. The +same is true for Perl's internal conversions between numeric and +string formats: use POSIX qw(strtod); use locale; @@ -643,15 +643,6 @@ case-mapping table is in effect. =item * -Some systems are broken in that they allow the "C" locale to be -overridden by users. If the decimal point character in the -C<LC_NUMERIC> category of the "C" locale is surreptitiously changed -from a dot to a comma, C<sprintf("%g", 0.123456e3)> produces a -string result of "123,456". Many people would interpret this as -one hundred and twenty-three thousand, four hundred and fifty-six. - -=item * - A sneaky C<LC_COLLATE> locale could result in the names of students with "D" grades appearing ahead of those with "A"s. @@ -719,7 +710,9 @@ case-mapping with C<\l>, C<\L>,C<\u> or C<\U>. =item B<Output formatting functions> (printf() and write()): -Success/failure result is never tainted. +Results are never tainted because otherwise even output from print, +for example C<print(1/7)>, should be tainted if C<use locale> is in +effect. =item B<Case-mapping functions> (lc(), lcfirst(), uc(), ucfirst()): |