]> git.ozlabs.org Git - petitboot/blobdiff - ui/ncurses/nc-cui.c
ui/ncurses: Add setlocale call
[petitboot] / ui / ncurses / nc-cui.c
index 99955b39fee5cfc2e530ada7978ba005c8225828..3f82f85fe1bbe1fbba70f362afcc698535514c5f 100644 (file)
@@ -22,6 +22,7 @@
 #include <errno.h>
 #include <stdlib.h>
 #include <string.h>
 #include <errno.h>
 #include <stdlib.h>
 #include <string.h>
+#include <locale.h>
 #include <sys/ioctl.h>
 
 #include "log/log.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);
 
        cui->platform_info = platform_info;
        cui->waitset = waitset_create(cui);
 
+       setlocale(LC_ALL, "");
+
        /* Loop here for scripts that just started the server. */
 
 retry_start:
        /* Loop here for scripts that just started the server. */
 
 retry_start: