Displaying 1 result from an estimated 1 matches for "snprintf_s".
Did you mean:
vsnprintf_s
2014 Sep 12
2
win_utf8_io.c: Use fputws instead of fwprintf
Hi
On MSVCRT, wprintf expects that %s is wide char string, but for not MSVCRT, this is not true.
When using -D__USE_MINGW_ANSI_STDIO=1 on MINGW, mingw doesn't use MSVCRT.
Therefore, compiling on mingw with -D__USE_MINGW_ANSI_STDIO=1 and redirecting stderr to a file, the printing result is corrupt.
We should use fputws simply.
A patch is attached.
-------------- next part