Commit 7c093d51 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Win32: use fputws instead of ToANSI+fputs

parent 1abf871c
......@@ -81,12 +81,11 @@ int utf8_vfprintf( FILE *stream, const char *fmt, va_list ap )
}
}
#endif
char *ansi = ToANSI (str);
if (ansi != NULL)
wchar_t *wide = ToWide(str);
if (likely(wide != NULL))
{
fputs (ansi, stream);
free (ansi);
res = fputws(wide, stream);
free(wide);
}
else
res = -1;
......
Markdown is supported
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