diff options
author | Christian Hesse <mail@eworm.de> | 2015-07-29 11:28:15 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2015-07-29 11:28:15 +0200 |
commit | cea591181d58d7cc161fc9ab1407ce940a421925 (patch) | |
tree | 282919c6f4277aefe45abc2097d4de6f5124bd73 | |
parent | 77df258636621ec66c688482861aca95f0950ab7 (diff) |
initialize locale for LC_CTYPE only
htop uses scanf functions to parse values from proc filesystem. This
breaks when initializing locale for LC_NUMERIC because of unexpected
commas. So initialize locale for LC_CTYPE only.
-rw-r--r-- | CRT.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -587,7 +587,7 @@ void CRT_init(int delay, int colorScheme) { CRT_setColors(CRT_colorScheme); /* initialize locale */ - setlocale(LC_ALL, ""); + setlocale(LC_CTYPE, ""); #ifdef HAVE_LIBNCURSESW if(strcmp(nl_langinfo(CODESET), "UTF-8") == 0) |