summaryrefslogtreecommitdiff
path: root/pod/perllocale.pod
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2019-12-21 13:44:52 -0700
committerKarl Williamson <khw@cpan.org>2019-12-23 07:28:41 -0700
commitf7f2ed6e1bdf4e3f1b97662306ee4c654a1b862a (patch)
tree1d32204e521cf5e35b12e1edfab98593f682eb22 /pod/perllocale.pod
parent8166b4e0bc220e759aa233af54ac1e60cc510f0c (diff)
downloadperl-f7f2ed6e1bdf4e3f1b97662306ee4c654a1b862a.tar.gz
perllocale: Tweak cautionary text
Diffstat (limited to 'pod/perllocale.pod')
-rw-r--r--pod/perllocale.pod7
1 files changed, 4 insertions, 3 deletions
diff --git a/pod/perllocale.pod b/pod/perllocale.pod
index 176667adb7..b2053a1444 100644
--- a/pod/perllocale.pod
+++ b/pod/perllocale.pod
@@ -412,9 +412,10 @@ L<thread|threads>. The locale will change in all other threads at the
same time, and should your thread get paused by the operating system,
and another started, that thread will not have the locale it is
expecting. On some platforms, there can be a race leading to segfaults
-if two threads call this function nearly simultaneously. On unthreaded
-builds, or on Perl 5.28 and later on thread-safe systems, this warning
-does not apply.
+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.
You can switch locales as often as you wish at run time with the
C<POSIX::setlocale()> function: