win_utf8_io.c: Use fputws instead of fwprintf.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
This commit is contained in:
Yuta NAKAI
2014-09-12 23:53:45 +09:00
committed by Erik de Castro Lopo
parent b373c8ecb4
commit 97bcc6f51a

View File

@@ -162,7 +162,7 @@ int print_console(FILE *stream, const wchar_t *text, size_t len)
if (WriteConsoleW(hErr, text, len, &out, NULL) == 0) return -1;
return out;
} else {
int ret = fwprintf(stream, L"%s", text);
int ret = fputws(text, stream);
if (ret < 0) return ret;
return len;
}