* doc/posix-functions/strftime.texi: Mention the %h problem.
* lib/strftime.c (__strftime_internal): On native Windows, for %h, do a
%b directive.
+2024-05-27 Bruno Haible <bruno@clisp.org>
+
+ nstrftime, c-nstrftime: Make %h work on native Windows.
+ * doc/posix-functions/strftime.texi: Mention the %h problem.
+ * lib/strftime.c (__strftime_internal): On native Windows, for %h, do a
+ %b directive.
+
2024-05-27 Bruno Haible <bruno@clisp.org>
nstrftime, c-nstrftime: Make %c work on native Windows.
potentially ambiguous numerical output, on some platforms:
mingw, MSVC.
@item
+The %h specifier produces empty output on some platforms:
+mingw, MSVC.
+@item
The %r specifier produces empty output, at least in a French locale,
on some platforms:
macOS 12.5, FreeBSD 14.0.
cpy (am_len, a_month);
break;
#else
+# if defined _WIN32 && !defined __CYGWIN__
+ format_char = L_('b');
+# endif
goto underlying_strftime;
#endif