ui/ncurses: Add setlocale call
authorJeremy Kerr <jk@ozlabs.org>
Tue, 9 Jul 2013 06:03:35 +0000 (14:03 +0800)
committerGeoff Levand <geoff@infradead.org>
Tue, 23 Jul 2013 17:37:28 +0000 (10:37 -0700)
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Geoff Levand <geoff@infradead.org>
ui/ncurses/nc-cui.c

index 99955b39fee5cfc2e530ada7978ba005c8225828..3f82f85fe1bbe1fbba70f362afcc698535514c5f 100644 (file)
@@ -22,6 +22,7 @@
 #include <errno.h>
 #include <stdlib.h>
 #include <string.h>
+#include <locale.h>
 #include <sys/ioctl.h>
 
 #include "log/log.h"
@@ -504,6 +505,8 @@ struct cui *cui_init(void* platform_info,
        cui->platform_info = platform_info;
        cui->waitset = waitset_create(cui);
 
+       setlocale(LC_ALL, "");
+
        /* Loop here for scripts that just started the server. */
 
 retry_start: