[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: nstrftime %c bug w.r.t. time zone
From: |
Bruno Haible |
Subject: |
Re: nstrftime %c bug w.r.t. time zone |
Date: |
Thu, 08 Feb 2024 14:55:44 +0100 |
> 2024-02-08 Bruno Haible <bruno@clisp.org>
>
> 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.
This patch adds a mention of the problem to the documentation:
diff --git a/doc/posix-functions/strftime.texi
b/doc/posix-functions/strftime.texi
index 7c4c0391fa..b62ea37fdb 100644
--- a/doc/posix-functions/strftime.texi
+++ b/doc/posix-functions/strftime.texi
@@ -16,6 +16,11 @@
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.