mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-11-05 02:39:41 +01:00
Provide error code if SetConsoleOutputCP fails
According to the Win32 documentation, GetLastError provides extended error information if SetConsoleOutputCP fails.
This commit is contained in:
parent
98d1a38d7f
commit
791310fa5d
1 changed files with 5 additions and 1 deletions
|
@ -223,7 +223,11 @@ void vlog_open_console(void)
|
||||||
|
|
||||||
if (!SetConsoleOutputCP(CP_UTF8))
|
if (!SetConsoleOutputCP(CP_UTF8))
|
||||||
{
|
{
|
||||||
vlog_warn("Could not set code page for console output to UTF-8.");
|
vlog_warn(
|
||||||
|
"Could not set code page for console output to UTF-8: "
|
||||||
|
"SetConsoleOutputCP() failed with %d",
|
||||||
|
GetLastError()
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif /* _WIN32 */
|
#endif /* _WIN32 */
|
||||||
|
|
Loading…
Reference in a new issue