[flac-dev] win_utf8_io.c: Use fputws instead of fwprintf

NAKAI Yuta nak5124 at live.jp
Fri Sep 12 08:28:32 PDT 2014

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 --------------
A non-text attachment was scrubbed...
Name: 0001-win_utf8_io.c-Use-fputws-instead-of-fwprintf.patch
Type: application/octet-stream
Size: 823 bytes
Desc: not available
Url : http://lists.xiph.org/pipermail/flac-dev/attachments/20140913/f1410d7a/attachment.obj 

More information about the flac-dev mailing list