Commit 97bcc6f5 authored by Yuta NAKAI's avatar Yuta NAKAI Committed by Erik de Castro Lopo
Browse files

win_utf8_io.c: Use fputws instead of fwprintf.

Signed-off-by: Erik de Castro Lopo's avatarErik de Castro Lopo <>
parent b373c8ec
......@@ -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;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment