From ada37398030f0f0d37d837cb96357e480f0eef07 Mon Sep 17 00:00:00 2001 From: nishi Date: Sun, 26 May 2024 09:47:42 +0000 Subject: [PATCH] fix locale git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@115 d4a5a174-5a4a-5b4b-b672-37683c10d7d5 --- Client/main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Client/main.c b/Client/main.c index 3b3c3a9..1e7af73 100644 --- a/Client/main.c +++ b/Client/main.c @@ -37,6 +37,9 @@ #include #include #include +#ifdef __MINGW32__ +#include +#endif #ifdef __MINGW32__ #include @@ -62,6 +65,9 @@ void padleft(int leftpad, const char* str) { } int main(int argc, char** argv) { +#ifdef __MINGW32__ + setlocale(LC_ALL, ""); +#endif int i; bool clear = true; bool create = false; -- 2.43.0