diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-07-09 14:03:35 +0800 |
---|---|---|
committer | Geoff Levand <geoff@infradead.org> | 2013-07-23 10:37:28 -0700 |
commit | 947cab5c30ae89d78dff998f87b57fec91b69023 (patch) | |
tree | e653e84d9991bc20ecc70e01a605224cd561cfcd /ui | |
parent | e93c1332f38deb3daf23852ebcadf613c0c4f288 (diff) | |
download | talos-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.c | 3 |
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: |