Add setlocale() calls to all UIs.
authorVic Lee <llyzs@163.com>
Tue, 9 Aug 2011 00:31:21 +0000 (08:31 +0800)
committerVic Lee <llyzs@163.com>
Tue, 9 Aug 2011 00:31:21 +0000 (08:31 +0800)
client/DirectFB/dfreerdp.c
client/X11/xfreerdp.c

index 16ef15e..88714eb 100644 (file)
@@ -19,6 +19,7 @@
 
 #include <errno.h>
 #include <pthread.h>
+#include <locale.h>
 #include <freerdp/utils/args.h>
 #include <freerdp/utils/memory.h>
 #include <freerdp/utils/semaphore.h>
@@ -361,6 +362,8 @@ int main(int argc, char* argv[])
        struct thread_data* data;
        rdpChanMan* chanman;
 
+       setlocale(LC_ALL, "");
+
        freerdp_chanman_global_init();
 
        g_sem = freerdp_sem_new(1);
index a10d9fb..7e86250 100644 (file)
@@ -22,6 +22,7 @@
 
 #include <errno.h>
 #include <pthread.h>
+#include <locale.h>
 #include <sys/select.h>
 #include <freerdp/utils/args.h>
 #include <freerdp/utils/memory.h>
@@ -591,6 +592,8 @@ int main(int argc, char* argv[])
        struct thread_data* data;
        rdpChanMan* chanman;
 
+       setlocale(LC_ALL, "");
+
        freerdp_chanman_global_init();
 
        g_sem = freerdp_sem_new(1);