I did: > + is_c_locale = > + (wstrcmp (locale, L"C") == 0 || wstrcmp (locale, L"POSIX") == 0);
Oops. Wrong function name. 2024-06-05 Bruno Haible <br...@clisp.org> nstrftime: Make %c work on native Windows again, part 2. * lib/strftime.c (__strftime_internal): Fix typo in my previous commit. 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 =