This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
70b6d9a
)
perllocale: Add note about z/OS special behavior
author
Karl Williamson
<khw@cpan.org>
Mon, 28 Mar 2022 19:25:10 +0000
(13:25 -0600)
committer
Karl Williamson
<khw@cpan.org>
Mon, 28 Mar 2022 22:40:41 +0000
(16:40 -0600)
pod/perllocale.pod
patch
|
blob
|
blame
|
history
diff --git
a/pod/perllocale.pod
b/pod/perllocale.pod
index
7a93419
..
932a9ef
100644
(file)
--- a/
pod/perllocale.pod
+++ b/
pod/perllocale.pod
@@
-415,10
+415,13
@@
expecting. On some platforms, there can be a race leading to segfaults
if two threads call this function nearly simultaneously. This warning
does not apply on unthreaded builds, or on perls where
C<${^SAFE_LOCALES}> exists and is non-zero; namely Perl 5.28 and later
if two threads call this function nearly simultaneously. This warning
does not apply on unthreaded builds, or on perls where
C<${^SAFE_LOCALES}> exists and is non-zero; namely Perl 5.28 and later
-unthreaded or compiled to be locale-thread-safe.
+unthreaded or compiled to be locale-thread-safe. On z/OS systems, this
+function becomes a no-op once any thread is started. Thus, on that
+system, you can set up the locale before creating any threads, and that
+locale will be the one in effect for the entire program.
-You can switch locales as often as you wish at run time with the
-C<POSIX::setlocale()> function:
+Otherwise, you can switch locales as often as you wish at run time with
+
the
C<POSIX::setlocale()> function:
# Import locale-handling tool set from POSIX module.
# This example uses: setlocale -- the function call
# Import locale-handling tool set from POSIX module.
# This example uses: setlocale -- the function call