mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-20 13:23:45 -07:00
Allow non-ASCII characters on Windows
This commit is contained in:
parent
6d4c6f8ea6
commit
eb825e03a1
1 changed files with 3 additions and 0 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue