Allow non-ASCII characters on Windows (#5741)

This commit is contained in:
Eblo
2025-09-30 22:00:30 -04:00
committed by GitHub
parent 004ad3aea3
commit 5ed3db0a7e

View File

@@ -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) {