summaryrefslogtreecommitdiff
path: root/locale.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2023-04-26 15:36:54 -0600
committerKarl Williamson <khw@cpan.org>2023-05-03 11:16:34 -0600
commit4d9b15204f627d9337665bd88adc71cd3bd1ca55 (patch)
treee46623352027fb3a84b5f38c8563e721367b1883 /locale.c
parent05e20b67a8c9b144a80337d9478ec0cb9a5b2374 (diff)
downloadperl-4d9b15204f627d9337665bd88adc71cd3bd1ca55.tar.gz
perlapi: Fix strftime inaccuracies, clarify
The deficiency mention removed by this commit was fixed earlier, but the documentation did not get updated.
Diffstat (limited to 'locale.c')
-rw-r--r--locale.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/locale.c b/locale.c
index 73652a3f0e..83ead06a29 100644
--- a/locale.c
+++ b/locale.c
@@ -4810,12 +4810,13 @@ to the formatted result (which MUST be arranged to be FREED BY THE
CALLER). This allows this function to increase the buffer size as needed,
so that the caller doesn't have to worry about that.
+On failure it returns NULL.
+
Note that yday and wday effectively are ignored by this function, as
-mini_mktime() overwrites them
+mini_mktime() overwrites them.
-Also note that it is always executed in the underlying locale of the program,
-giving localized results. Mojibake can result on some platforms if LC_CTYPE
-and LC_TIME are not the same locale.
+Also note that it is always executed in the underlying C<LC_TIME> locale of
+the program, giving results based on that locale.
=cut
*/