From: Bruno Haible Date: Wed, 5 Jun 2024 16:07:55 +0000 (+0200) Subject: nstrftime: Make %c work on native Windows again, part 2. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=1734b827208fb3695c88812c57359dbccd5d6e52;p=gnulib.git nstrftime: Make %c work on native Windows again, part 2. * lib/strftime.c (__strftime_internal): Fix typo in my previous commit. --- diff --git a/ChangeLog b/ChangeLog index 155fd88a05..37dc88c56b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2024-06-05 Bruno Haible + + nstrftime: Make %c work on native Windows again, part 2. + * lib/strftime.c (__strftime_internal): Fix typo in my previous commit. + 2024-06-05 Paul Eggert nstrftime: don’t assume diff --git a/lib/strftime.c b/lib/strftime.c index 4441584121..3a429ed4af 100644 --- a/lib/strftime.c +++ b/lib/strftime.c @@ -1301,7 +1301,7 @@ __strftime_internal (STREAM_OR_CHAR_T *s, STRFTIME_ARG (size_t maxsize) # if defined _MSC_VER const wchar_t *locale = _wsetlocale (LC_TIME, NULL); is_c_locale = - (wstrcmp (locale, L"C") == 0 || wstrcmp (locale, L"POSIX") == 0); + (wcscmp (locale, L"C") == 0 || wcscmp (locale, L"POSIX") == 0); # else const char *locale = setlocale (LC_TIME, NULL); is_c_locale =