mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +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))
|
||||
{
|
||||
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 */
|
||||
|
|
Loading…
Reference in a new issue