* doc/posix-functions/strftime.texi: Mention the %h problem.
* lib/nstrftime.c (__strftime_internal): On native Windows, for %h, do a
%b directive.
+2024-05-27 Bruno Haible <bruno@clisp.org>
+
+ nstrftime: Make %h work on native Windows.
+ * doc/posix-functions/strftime.texi: Mention the %h problem.
+ * lib/nstrftime.c (__strftime_internal): On native Windows, for %h, do a
+ %b directive.
+
2024-05-27 Bruno Haible <bruno@clisp.org>
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 Windows C runtime library (which is used by MinGW) does not
support the %e specifier (and possibly the other more recent SUS
specifiers too, i.e., %C, %D, %h, %n, %r, %R, %t, and %T).
cpy (am_len, a_month);
break;
#else
+# if defined _WIN32 && !defined __CYGWIN__
+ format_char = L_('b');
+# endif
goto underlying_strftime;
#endif