Newer versions of the C Runtime Libraries (Which includes ucrt) do indeed support %T at the time of writing: https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/strftime-wcsftime-strftime-l-wcsftime-l?view=msvc-170
On Fri, Aug 26, 2022 at 11:36 PM LIU Hao <[email protected]> wrote: > 在 2022-08-06 18:03, Julian Waters 写道: > > Is there a potential fix for MinGW-w64 - for 32 and 64 bit Windows / > Bugs / > > #793 strftime() formatting codes like %F, %T or %V are not working > > (sourceforge.net) <https://sourceforge.net/p/mingw-w64/bugs/793/>? At > the > > moment I have managed to workaround the issue by replacing the %T > > formatting specifier, but a goal is to reduce codebase changes to the JDK > > as much as possible, so hopefully this can be resolved in newer gcc > releases > > > > > > It is likely that the MSVCRT library didn't support `%T`; I haven't > checked recent versions, though. > If UCRT supports it, then it should definitely be preferred. > > As for the warning about unknown format specifiers, probably we should add > `__attribute__((__gnu_strftime__))` for UCRT. I think I can do that later. > > > -- > Best regards, > LIU Hao > _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
