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