Eli Zaretskii wrote:

> And Gnulib's vasprintf is huge, basically performing
> all the formatting by itself.

Yes, but this is not the function that is meant to be invoked here.
stdio-consolesafe.c is meant to invoke mingw's vasprintf() function.

> Btw, stdio-consolesafe.c uses vasprintf, which mingw.org's MinGW
> doesn't have.

Gnulib does not support the old mingw.org mingw any more. The
mingw.org website is dead, and the development has been taken
over by the mingw-w64 project more than 15 years ago [1].

The code in stdio-consolesafe.c is conditionalized with
__USE_MINGW_ANSI_STDIO.
Does your old mingw have the functions __mingw_[v][f]printf?
Do these functions in your old mingw output double-byte characters
one byte at a time?
Does your old mingw enable these functions under a different
condition than __USE_MINGW_ANSI_STDIO?
Does your old mingw have the vasprintf() function?

Bruno

[1] https://en.wikipedia.org/wiki/Mingw-w64




Reply via email to