diff options
author | Karl Williamson <khw@cpan.org> | 2018-02-05 22:11:51 -0700 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2018-02-18 15:44:23 -0700 |
commit | e9bc6d6b34afc0063cc5181b59f77eeb81b1182d (patch) | |
tree | 1028b01c95db9ebdc6d78340ca1f00aad07fe922 /pod/perlvar.pod | |
parent | ddd5ebe0cadc81a0360ad8007674490fda89ee88 (diff) | |
download | perl-e9bc6d6b34afc0063cc5181b59f77eeb81b1182d.tar.gz |
Add thread-safe locale handling
This (large) commit allows locales to be used in threaded perls on
platforms that support it. This includes recent Windows and Posix 2008
ones.
Diffstat (limited to 'pod/perlvar.pod')
-rw-r--r-- | pod/perlvar.pod | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pod/perlvar.pod b/pod/perlvar.pod index 8f99c406fc..06d1ef9a93 100644 --- a/pod/perlvar.pod +++ b/pod/perlvar.pod @@ -2264,7 +2264,11 @@ X<${^SAFE_LOCALES}> Reflects if safe locale operations are available to this perl (when the value is 1) or not (the value is 0). This variable is always 1 if the -perl has been compiled without threads, and currently 0 otherwise. +perl has been compiled without threads. It is also 1 if this perl is +using thread-safe locale operations. Note that an individual thread may +choose to use the global locale (generally unsafe) by calling +C<switch_to_global_locale>. This variable currently is still +set to 1 in such threads. This variable is read-only. |