summaryrefslogtreecommitdiff
path: root/src/fe-text
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-02-15 19:33:05 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-02-15 19:33:05 +0000
commitfa3d6dcd754f5ebaf9d4cfb301a9079de4b36456 (patch)
treeea5bcb9107dbb6792081908f27df45464368ce40 /src/fe-text
parent23a31f30ded897a436df9a22738834288b9cc704 (diff)
downloadirssi-fa3d6dcd754f5ebaf9d4cfb301a9079de4b36456.zip
Disable the nl_langinfo() if CODESET isn't defined (openbsd).
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2458 dbcabf3a-b0e7-0310-adc4-f8d773084564
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;