]> 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 22:05:29 +0000 (00:05 +0200)
commit0dcbff9345238ea2219e60c184866c8fdeea1723
treeef6155f341cb65d3e416dde727db93232f432303
parentc1b1d9d5328530fc3a27c8d11a6845f19a14a3f2
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