diff options
author | glx22 <glx@openttd.org> | 2021-07-16 18:12:17 +0200 |
---|---|---|
committer | Loïc Guilloux <glx22@users.noreply.github.com> | 2021-07-16 23:01:08 +0200 |
commit | 16abdd52546eb3cfa9d51d674c41711c2c170029 (patch) | |
tree | 340864cb07e66b8fd075b45779afc1add5c2b4b4 /src/debug.cpp | |
parent | afea5e85aeff20077161cc37500755e9ee9a6b14 (diff) | |
download | openttd-16abdd52546eb3cfa9d51d674c41711c2c170029.tar.xz |
Change: [Win32] Set the console codepage to UTF-8
Diffstat (limited to 'src/debug.cpp')
-rw-r--r-- | src/debug.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/debug.cpp b/src/debug.cpp index 418598d5d..2ac1dcc69 100644 --- a/src/debug.cpp +++ b/src/debug.cpp @@ -128,13 +128,7 @@ void DebugPrint(const char *level, const std::string &message) #endif } else { std::string msg = fmt::format("{}dbg: [{}] {}\n", GetLogPrefix(), level, message); -#if defined(_WIN32) - wchar_t system_buf[512]; - convert_to_fs(msg.c_str(), system_buf, lengthof(system_buf)); - fputws(system_buf, stderr); -#else fputs(msg.c_str(), stderr); -#endif NetworkAdminConsole(level, message); if (_settings_client.gui.developer >= 2) IConsolePrint(CC_DEBUG, "dbg: [{}] {}", level, message); |