summaryrefslogtreecommitdiffstats
path: root/CRT.c
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2020-10-20 10:23:47 +0200
committerDaniel Lange <DLange@git.local>2020-10-20 10:23:47 +0200
commit0ea18a6edbbf97c7bab21bb2aab40cf8213858e3 (patch)
tree2a59ddc7ac580630f8d7088664b08b99f0761852 /CRT.c
parent9f1a9ab2c2d5984887f5b821afd34a8480790877 (diff)
parent4c66eb6d4cbdddc658e5f0274d8130155c6013f1 (diff)
Merge branch 'Xalloc_Cleanup' of cgzones/htop
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 f6321f4c..e6f2ec9e 100644
--- a/CRT.c
+++ b/CRT.c
@@ -658,7 +658,7 @@ void CRT_init(int delay, int colorScheme, bool allowUnicode) {
setlocale(LC_CTYPE, "");
#ifdef HAVE_LIBNCURSESW
- if (allowUnicode && strcmp(nl_langinfo(CODESET), "UTF-8") == 0)
+ if (allowUnicode && String_eq(nl_langinfo(CODESET), "UTF-8"))
CRT_utf8 = true;
else
CRT_utf8 = false;

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