summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEblo <7004497+Eblo@users.noreply.github.com>2025-09-30 22:00:30 -0400
committerGitHub <noreply@github.com>2025-09-30 19:00:30 -0700
commit5ed3db0a7ebe21b8adb6f9cda1e4a92b4f8e8fcb (patch)
tree3146ce03a9f4a874cbabf61db7dfbf95e2e69a29
parent004ad3aea3ff940b314d2c49e19998269fe7b2b1 (diff)
Allow non-ASCII characters on Windows (#5741)
-rw-r--r--soh/src/code/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/soh/src/code/main.c b/soh/src/code/main.c
index 0a255f48d..769ecc026 100644
--- a/soh/src/code/main.c
+++ b/soh/src/code/main.c
@@ -1,5 +1,6 @@
#ifdef _WIN32
#include <Windows.h>
+#include <locale.h>
#endif
#include "global.h"
@@ -52,6 +53,8 @@ int SDL_main(int argc, char** argv) {
#ifndef _DEBUG
ShowWindow(GetConsoleWindow(), SW_HIDE);
#endif
+ // Allow non-ascii characters for Windows
+ setlocale(LC_ALL, ".UTF8");
#else //_WIN32
int main(int argc, char** argv) {