1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

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
This commit is contained in:
Timo Sirainen 2002-02-15 19:33:05 +00:00 committed by cras
parent 23a31f30de
commit fa3d6dcd75

View File

@ -142,7 +142,7 @@ void term_common_init(void)
term_use_colors = term_has_colors() && settings_get_bool("colors"); term_use_colors = term_has_colors() && settings_get_bool("colors");
read_settings(); read_settings();
#ifdef HAVE_NL_LANGINFO #if defined (HAVE_NL_LANGINFO) && defined(CODESET)
setlocale(LC_CTYPE, ""); setlocale(LC_CTYPE, "");
if (strcmp(nl_langinfo(CODESET), "UTF-8") == 0) { if (strcmp(nl_langinfo(CODESET), "UTF-8") == 0) {
term_type = TERM_TYPE_UTF8; term_type = TERM_TYPE_UTF8;