Allow non-ASCII characters on Windows

This commit is contained in:
Eblo 2025-08-11 09:40:06 -04:00
commit eb825e03a1
No known key found for this signature in database
GPG key ID: 214AFBC4697F23AC

View file

@ -1,5 +1,6 @@
#ifdef _WIN32 #ifdef _WIN32
#include <Windows.h> #include <Windows.h>
#include <locale.h>
#endif #endif
#include "global.h" #include "global.h"
@ -52,6 +53,8 @@ int SDL_main(int argc, char** argv) {
#ifndef _DEBUG #ifndef _DEBUG
ShowWindow(GetConsoleWindow(), SW_HIDE); ShowWindow(GetConsoleWindow(), SW_HIDE);
#endif #endif
// Allow non-ascii characters for Windows
setlocale(LC_ALL, ".UTF8");
#else //_WIN32 #else //_WIN32
int main(int argc, char** argv) { int main(int argc, char** argv) {