From: nishi Date: Sun, 26 May 2024 09:47:42 +0000 (+0000) Subject: fix locale X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=ada37398030f0f0d37d837cb96357e480f0eef07;p=dataworks.git fix locale git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@115 d4a5a174-5a4a-5b4b-b672-37683c10d7d5 --- 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;