Don't use wide print functions on typically-byte-oriented streams
This was SVN commit r7198.
This commit is contained in:
parent
c377a69823
commit
a444e6febc
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user