On 2023-08-01 06:28, Pádraig Brady wrote:
perhaps we can now use %j, %t, and %z now?
I hope so, particularly as we haven't seen any issues with Coreutils 9.1 or later.
I haven't run into problems using these printf formats for a while. Gnulib doc is ambiguous, but suggests it could be an issue on AIX 5.1, HP-UX 11.23, IRIX 6.5, Solaris 9, Cygwin 1.5.24, mingw, MSVC 14. Of these, the only platforms that are not obsolete are mingw and MSVC 14, and Stack Overflow[1] suggests that this is only with older MS-Windows versions and can be worked around easily on those older versions by whoever's doing the port.
Diffutils doesn't work on MS-Windows now anyway, as per Bug#64811, so I'll cc to that bug report to give Gisle Vanem a heads-up about this other issue.
[1]: https://stackoverflow.com/questions/44382862/how-to-printf-a-size-t-without-warning-in-mingw-w64-gcc-7-1