1
0
forked from 0ad/0ad

Don't use wide print functions on typically-byte-oriented streams

This was SVN commit r7198.
This commit is contained in:
Ykkrosh 2009-11-14 11:03:43 +00:00
parent c377a69823
commit a444e6febc
3 changed files with 3 additions and 3 deletions

View File

@ -67,7 +67,7 @@ static void def_translate_free(const wchar_t* UNUSED(text))
static void def_log(const wchar_t* text)
{
wprintf(L"%ls", text);
printf("%ls", text); // must not use wprintf, since stdout on Unix is byte-oriented
}

View File

@ -76,7 +76,7 @@ void udbg_launch_debugger()
void debug_puts(const wchar_t* text)
{
wprintf(L"%ls", text);
printf("%ls", text); // must not use printf, since stdout is byte-oriented
fflush(stdout);
}

View File

@ -36,7 +36,7 @@
void sys_display_msg(const wchar_t* caption, const wchar_t* msg)
{
fwprintf(stderr, L"%ls: %ls\n", caption, msg);
fprintf(stderr, "%ls: %ls\n", caption, msg); // must not use fwprintf, since stderr is byte-oriented
}
ErrorReaction sys_display_error(const wchar_t* text, size_t flags)