mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -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:
parent
1eaab825c7
commit
fc8f0f1623
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user