summaryrefslogtreecommitdiffstats
path: root/CRT.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-10-03 21:20:43 +0200
committerChristian Göttsche <cgzones@googlemail.com>2020-10-19 15:38:45 +0200
commit4c66eb6d4cbdddc658e5f0274d8130155c6013f1 (patch)
tree8446343e944911b68b590a4bb5f834476f13230b /CRT.c
parent577416d1a946382ab9f0c523e5fae755f9d71f69 (diff)
XUtils string related updates
- allow count out-parameter of String_split() to be NULL - introduce xStrndup() - do not allow NULL pointers passed to String_eq() it is not used in any code - implement String_startsWith(), String_contains_i() and String_eq() as inline header functions - adjust several conversion issues
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 d3afd0ec..a2efb6a1 100644
--- a/CRT.c
+++ b/CRT.c
@@ -655,7 +655,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