summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-07-09 14:03:35 +0800
committerGeoff Levand <geoff@infradead.org>2013-07-23 10:37:28 -0700
commit947cab5c30ae89d78dff998f87b57fec91b69023 (patch)
treee653e84d9991bc20ecc70e01a605224cd561cfcd /ui
parente93c1332f38deb3daf23852ebcadf613c0c4f288 (diff)
downloadtalos-petitboot-947cab5c30ae89d78dff998f87b57fec91b69023.tar.gz
talos-petitboot-947cab5c30ae89d78dff998f87b57fec91b69023.zip
ui/ncurses: Add setlocale call
Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Geoff Levand <geoff@infradead.org>
Diffstat (limited to 'ui')
-rw-r--r--ui/ncurses/nc-cui.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/ncurses/nc-cui.c b/ui/ncurses/nc-cui.c
index 99955b3..3f82f85 100644
--- a/ui/ncurses/nc-cui.c
+++ b/ui/ncurses/nc-cui.c
@@ -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:
OpenPOWER on IntegriCloud