]> Savannah Git Hosting - gnulib.git/commit
nstrftime: Make %c work on native Windows.
authorBruno Haible <bruno@clisp.org>
Mon, 27 May 2024 21:01:50 +0000 (23:01 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 31 May 2024 15:58:17 +0000 (17:58 +0200)
commit6a21cddabf400803720ee330c4b39f463bc20948
tree873b64a47b366f2bd6b635d95ccf6af08916f843
parentb837086756befe4aa27af516efea2a3b2a3d0cf6
nstrftime: Make %c work on native Windows.

* doc/posix-functions/strftime.texi: Mention the %c problem.
* lib/nstrftime.c: Include <locale.h>. Include hard-locale.h.
(__strftime_internal): For %c, use a subformat that contains the weekday
name (or abbrev.) and the month name (or abbrev.).
* modules/nstrftime (Depends-on): Add hard-locale.
(Link): New section.
* modules/nstrftime-tests (Makefile.am): Link test-nstrftime with
$(HARD_LOCALE_LIB).
ChangeLog
doc/posix-functions/strftime.texi
lib/nstrftime.c
modules/nstrftime
modules/nstrftime-tests