]> Savannah Git Hosting - gnulib.git/commitdiff
nstrftime: Make %c work on native Windows again, part 2.
authorBruno Haible <bruno@clisp.org>
Wed, 5 Jun 2024 16:07:55 +0000 (18:07 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 5 Jun 2024 16:11:30 +0000 (18:11 +0200)
* lib/strftime.c (__strftime_internal): Fix typo in my previous commit.

ChangeLog
lib/strftime.c

index 155fd88a054e9720d394389ee7461fa09a6d2dc9..37dc88c56b73845c98dd517cdc09c6b4e5ca6a7a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-06-05  Bruno Haible  <bruno@clisp.org>
+
+       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  <eggert@cs.ucla.edu>
 
        nstrftime: don’t assume <locale.h>
index 4441584121aa20cb306828ae5f8ef8d7dba5b26d..3a429ed4afe7410039cb049d34598c3485dc0057 100644 (file)
@@ -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 =