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

Erik de Castro Lopo mle+la at mega-nerd.com
Sat Sep 20 15:46:09 PDT 2014


NAKAI Yuta wrote:

> 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.

Patch applied. Thanks.

Cheers,
Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/


More information about the flac-dev mailing list