summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2018-03-12 12:29:42 -0600
committerKarl Williamson <khw@cpan.org>2018-03-12 12:47:18 -0600
commit163deff3e25f98eac6b61d8511c3bc80fa25109b (patch)
tree8423e06d9368d70bae5a1b3aca70edf041700fbd
parent9487427ba26d65e7adf5954069fc2fde3bdedf41 (diff)
downloadperl-163deff3e25f98eac6b61d8511c3bc80fa25109b.tar.gz
perlapi/Perl_setlocale: Clarify
-rw-r--r--locale.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/locale.c b/locale.c
index d907e37c3d..cd50be9612 100644
--- a/locale.c
+++ b/locale.c
@@ -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