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:
parent
23a31f30de
commit
fa3d6dcd75
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user