diff options
author | Karl Williamson <khw@cpan.org> | 2018-03-12 12:29:42 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2018-03-12 12:47:18 -0600 |
commit | 163deff3e25f98eac6b61d8511c3bc80fa25109b (patch) | |
tree | 8423e06d9368d70bae5a1b3aca70edf041700fbd | |
parent | 9487427ba26d65e7adf5954069fc2fde3bdedf41 (diff) | |
download | perl-163deff3e25f98eac6b61d8511c3bc80fa25109b.tar.gz |
perlapi/Perl_setlocale: Clarify
-rw-r--r-- | locale.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -2091,9 +2091,9 @@ compensates; regular C<setlocale> doesn't. Another reason it isn't completely a drop-in replacement is that it is declared to return S<C<const char *>>, whereas the system setlocale omits the -C<const>. (If it were being written today, plain setlocale would be declared -const, since it is illegal to change the information it returns; doing so leads -to segfaults.) +C<const> (presumably because its API was specified long ago, and can't be +updated; it is illegal to change the information C<setlocale> returns; doing +so leads to segfaults.) Finally, C<Perl_setlocale> works under all circumstances, whereas plain C<setlocale> can be completely ineffective on some platforms under some |