+2024-05-27 Bruno Haible <bruno@clisp.org>
+
+ nstrftime, c-nstrftime tests: Avoid some failures on native Windows.
+ * tests/test-nstrftime.h (tzalloc_test): On native Windows, ignore
+ differences in the way the time zone is printed.
+
2024-05-27 Bruno Haible <bruno@clisp.org>
nstrftime, c-nstrftime: Make %r work on native Windows.
if (! (STREQ (buf, LT[i].exp)
|| (!tz && n == strlen (LT[i].exp)
&& memcmp (buf, LT[i].exp, n - sizeof "(GMT)" + 1) == 0
- && STREQ (buf + n - sizeof "(GMT)" + 1, "(GMT)"))))
+ && STREQ (buf + n - sizeof "(GMT)" + 1, "(GMT)"))
+#if defined _WIN32 && !defined __CYGWIN__
+ /* On native Windows, the time zone is printed differently. */
+ || strncmp (buf, LT[i].exp, 21) == 0
+#endif
+ ) )
{
/* Don't fail for unhandled dst in ahistorical entries,
as gnulib doesn't currently fix that issue, seen on Darwin 14. */