1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-19 01:36:33 -04:00

UTF-8, update_screen_driver: Restore all original options.

This commit is contained in:
Kalle Olavi Niemitalo 2007-05-19 09:13:56 +03:00 committed by Witold Filipczyk
parent 73b67d34dc
commit b493ab8b9e

View File

@ -256,6 +256,10 @@ update_screen_driver(struct screen_driver *driver, struct option *term_spec)
const int cp = get_opt_codepage_tree(term_spec, "charset"); const int cp = get_opt_codepage_tree(term_spec, "charset");
int utf8_io = get_opt_bool_tree(term_spec, "utf_8_io"); int utf8_io = get_opt_bool_tree(term_spec, "utf_8_io");
/* Copy all the original options from constants, so that this
* function need not carefully restore options one by one. */
copy_struct(&driver->opt, &screen_drivers[driver->type]->opt);
#ifdef CONFIG_UTF8 #ifdef CONFIG_UTF8
/* Force UTF-8 I/O if the UTF-8 charset is selected. Various /* Force UTF-8 I/O if the UTF-8 charset is selected. Various
* places assume that the terminal's charset is unibyte if * places assume that the terminal's charset is unibyte if