1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00

UTF-8, use_utf8_io: Test driver->opt.charsets[0] even #ifdef CONFIG_UTF8.

driver->opt.utf8 is no longer read and will soon be removed.
This commit is contained in:
Kalle Olavi Niemitalo 2007-05-19 14:12:54 +03:00 committed by Witold Filipczyk
parent 3260bcec20
commit d561304524

View File

@ -210,11 +210,7 @@ static const struct screen_driver_opt *const screen_driver_opts[] = {
/* TERM_FREEBSD: */ &freebsd_screen_driver_opt,
};
#ifdef CONFIG_UTF8
#define use_utf8_io(driver) ((driver)->opt.utf8)
#else
#define use_utf8_io(driver) ((driver)->opt.charsets[0] != -1)
#endif /* CONFIG_UTF8 */
static INIT_LIST_HEAD(active_screen_drivers);