aboutsummaryrefslogtreecommitdiff
path: root/examples/common.cpp
diff options
context:
space:
mode:
authorDannyDaemonic <DannyDaemonic@gmail.com>2023-05-09 10:53:28 -0700
committerGitHub <noreply@github.com>2023-05-09 19:53:28 +0200
commite6a46b0ed1884c77267dc70693183e3b7164e0e0 (patch)
tree28b8456289fd929ae5fd3565f4e28d4af4e21fd5 /examples/common.cpp
parent9f8dbc4787f32cd9c13b5c647d497d13c1a06db2 (diff)
Locale fix for Windows (#1379)
Diffstat (limited to 'examples/common.cpp')
-rw-r--r--examples/common.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/common.cpp b/examples/common.cpp
index 23d69e7..7aa7758 100644
--- a/examples/common.cpp
+++ b/examples/common.cpp
@@ -520,8 +520,9 @@ void console_init(console_state & con_st) {
if (con_st.tty != nullptr) {
con_st.out = con_st.tty;
}
-#endif
+
setlocale(LC_ALL, "");
+#endif
}
void console_cleanup(console_state & con_st) {