summaryrefslogtreecommitdiff
path: root/src/fe-text
diff options
context:
space:
mode:
Diffstat (limited to 'src/fe-text')
-rw-r--r--src/fe-text/term.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fe-text/term.c b/src/fe-text/term.c
index 9e9f1f04..437fbd91 100644
--- a/src/fe-text/term.c
+++ b/src/fe-text/term.c
@@ -142,7 +142,7 @@ void term_common_init(void)
term_use_colors = term_has_colors() && settings_get_bool("colors");
read_settings();
-#ifdef HAVE_NL_LANGINFO
+#if defined (HAVE_NL_LANGINFO) && defined(CODESET)
setlocale(LC_CTYPE, "");
if (strcmp(nl_langinfo(CODESET), "UTF-8") == 0) {
term_type = TERM_TYPE_UTF8;