From cea591181d58d7cc161fc9ab1407ce940a421925 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 29 Jul 2015 11:28:15 +0200 Subject: [PATCH] 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. --- CRT.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)