]> Savannah Git Hosting - gnulib.git/commitdiff
nstrtime, c-nstrftime: Fix %c directive's result on NetBSD, Solaris.
authorBruno Haible <bruno@clisp.org>
Thu, 8 Feb 2024 13:52:06 +0000 (14:52 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 8 Feb 2024 13:52:06 +0000 (14:52 +0100)
* doc/posix-functions/strftime.texi: Mention this as a restriction of
strftime.

ChangeLog
doc/posix-functions/strftime.texi

index d0891f1e66eaf22e730a70bc980454797c67aba5..1c44d8dc48f7375a1215d2f941d63be0e5bf9ac4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,8 @@
        nstrtime, c-nstrftime: Fix %c directive's result on NetBSD, Solaris.
        * lib/strftime.c (__strftime_internal): On NetBSD and Solaris, remove
        the last word of the %c directive's result if it looks like a time zone.
+       * doc/posix-functions/strftime.texi: Mention this as a restriction of
+       strftime.
 
 2024-02-07  Bruno Haible  <bruno@clisp.org>
 
index 7c4c0391fa07880044d26c3d3662f43afdfea955..b62ea37fdb54ee89533b35a1553504376943377f 100644 (file)
@@ -16,6 +16,11 @@ when the environment variable @code{TZ} has been set by Cygwin.
 Portability problems not fixed by Gnulib:
 @itemize
 @item
+The %c specifier does not work with a time retrieved through @code{gmtime}
+or @code{gmtime_r}, since it outputs also the current time zone,
+on some platforms:
+NetBSD 9.3, Solaris 11.4.
+@item
 The %r specifier produces empty output, at least in a French locale,
 on some platforms:
 macOS 12.5, FreeBSD 14.0.