]> Savannah Git Hosting - gnulib.git/commit
nstrtime: Fix %p, %P, %r directives' results on NetBSD, Solaris.
authorBruno Haible <bruno@clisp.org>
Thu, 8 Feb 2024 14:34:34 +0000 (15:34 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 8 Feb 2024 14:34:34 +0000 (15:34 +0100)
commitfbafdff930180540fef0ad1e4ee2e8ac26bdf715
treeab2e56d67ee54cf491c34a84b5946187f7ce9126
parent611ae97f28054698e59634764443ba9b6fdd1f34
nstrtime: Fix %p, %P, %r directives' results on NetBSD, Solaris.

* lib/strftime.c: Include <locale.h>, localename.h.
(should_remove_ampm): New function.
(__strftime_internal): On NetBSD and Solaris, remove the AM/PM indicator
from the %p, %r directives' results in specific locales.
* modules/nstrftime (Depends-on): Add localename.
* tests/test-nstrftime.h (locales_test): Update the expected result of
the %r directive.
* doc/posix-functions/strftime.texi: Mention the problem of the %p and
%r directives on NetBSD and Solaris.
ChangeLog
doc/posix-functions/strftime.texi
lib/strftime.c
modules/nstrftime
tests/test-nstrftime.h