On Wed, 25 Jun 2025, Pali Rohár wrote:
One proposal from my side: Add support for UCRT compile time macros
_CRT_STDIO_ISO_WIDE_SPECIFIERS and _CRT_STDIO_LEGACY_WIDE_SPECIFIERS
by which application can decide if wants C99 behavior or MS behavior.
It would indeed be nice if we could make this work, somehow. We do have
the mechanism for setting the options for the UCRT stdio functions, since
3f5c5d854234971909e86d03a8351494db68f615 - but setting it up to react to
these macros is a bit trickier.
We can provide two mingw-w64 wide print functions and our stdio.h can
redirect via __MINGW_ASM_CALL() to correct function based on those
macros.
No, I don't think we should do that.
One core target, at least for me, is that we use the CRT's printfs by
default, at least in UCRT mode.
On a higher level, I want us to statically link less code into our
binaries, not more.
So I'd rather have this use the UCRT stdio setting mechanism, somehow (I
don't know offhand how), not make it switch back to the mingw statically
linked printfs.
// Martin
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public