summaryrefslogtreecommitdiffstats
path: root/CRT.c
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2015-07-29 11:28:15 +0200
committerChristian Hesse <mail@eworm.de>2015-07-29 11:28:15 +0200
commitcea591181d58d7cc161fc9ab1407ce940a421925 (patch)
tree282919c6f4277aefe45abc2097d4de6f5124bd73 /CRT.c
parent77df258636621ec66c688482861aca95f0950ab7 (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.
Diffstat (limited to 'CRT.c')
-rw-r--r--CRT.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/CRT.c b/CRT.c
index 8de964a5..03f71ca7 100644
--- a/CRT.c
+++ b/CRT.c
@@ -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)

© 2014-2024 Faster IT GmbH | imprint | privacy policy