mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05:00
UTF-8, set_screen_driver_opt: Never use frame_seqs with UTF-8 I/O.
This commit is contained in:
parent
f970994640
commit
0c3d05817e
@ -278,16 +278,17 @@ set_screen_driver_opt(struct screen_driver *driver, struct option *term_spec)
|
||||
if (utf8_io) {
|
||||
driver->opt.charsets[0] = cp;
|
||||
|
||||
/* When we're using UTF-8 I/O, we never need to switch
|
||||
* charsets or fonts for drawing frames, because the
|
||||
* characters encoded in UTF-8 are already unambiguous. */
|
||||
driver->opt.frame_seqs = NULL;
|
||||
|
||||
if (driver->type == TERM_LINUX) {
|
||||
if (get_opt_bool_tree(term_spec, "restrict_852"))
|
||||
driver->opt.frame = frame_restrict;
|
||||
|
||||
driver->opt.charsets[1] = get_cp_index("cp437");
|
||||
} else if (driver->type == TERM_FREEBSD) {
|
||||
#ifdef CONFIG_UTF8
|
||||
if (get_opt_bool_tree(term_spec, "m11_hack"))
|
||||
driver->opt.frame_seqs = m11_hack_frame_seqs;
|
||||
#endif /* CONFIG_UTF8 */
|
||||
driver->opt.frame = frame_freebsd_u;
|
||||
driver->opt.charsets[1] = get_cp_index("cp437");
|
||||
} else if (driver->type == TERM_VT100) {
|
||||
|
Loading…
Reference in New Issue
Block a user