]> Nishi Git Mirror - dataworks.git/commitdiff
fix locale
authornishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Sun, 26 May 2024 09:47:42 +0000 (09:47 +0000)
committernishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Sun, 26 May 2024 09:47:42 +0000 (09:47 +0000)
git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@115 d4a5a174-5a4a-5b4b-b672-37683c10d7d5

Client/main.c

index 3b3c3a916bf85749656499d4e1ce65773fc07981..1e7af73a2d10de292b5e3e43f0ebc0c8978f3ee3 100644 (file)
@@ -37,6 +37,9 @@
 #include <stdlib.h>
 #include <string.h>
 #include <time.h>
+#ifdef __MINGW32__
+#include <locale.h>
+#endif
 
 #ifdef __MINGW32__
 #include <windows.h>
@@ -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;