1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-18 01:26:23 -04:00
elinks/src/viewer
Kalle Olavi Niemitalo 3e16757753 Bug 784: Keep form_control.default_value in the document charset.
Previously, html_special_form_control converted
form_control.default_value to the terminal charset, and init_form_state
then copied the value to form_state.value.  However, when CONFIG_UTF8
is defined and UTF-8 I/O is enabled, form_state.value is supposed to
be in UTF-8, rather than in the terminal charset.

This mismatch could not be conveniently fixed in
html_special_form_control because that does not know which terminal is
being used and whether UTF-8 I/O is enabled there.  Also, constructing
a conversion table from the document charset to form_state.value could
have ruined renderer_context.convert_table, because src/intl/charsets.c
does not support multiple concurrent conversion tables.

So instead, we now keep form_control.default_value in the document
charset, and convert it in the viewer each time it is needed.  Because
the result of the conversion is kept in form_state.value between
incremental renderings, this shouldn't even slow things down too much.

I am not implementing the proper charset conversions for the DOM
defaultValue property yet, because the current code doesn't have
them for other string properties either, and bug 805 is already open
for that.
2007-05-20 14:05:39 +02:00
..
dump Bug 882: Replace C1 controls with spaces in UTF-8 to the terminal. 2007-01-27 11:12:22 +02:00
text Bug 784: Keep form_control.default_value in the document charset. 2007-05-20 14:05:39 +02:00
action.c Added the keybinding ('R' by default) for reading documents out using 2006-12-11 18:48:44 +01:00
action.h Remove empty lines in start of header files 2005-11-15 11:33:27 +01:00
Makefile Create a module for src/viewer, which subsumes some existing modules 2006-05-20 15:01:24 +00:00
timer.c Mark all module names for translation and include needed header files. 2007-05-01 20:20:15 +02:00
timer.h Remove empty lines in start of header files 2005-11-15 11:33:27 +01:00
viewer.c Missing NULL 2006-05-20 17:58:13 +02:00
viewer.h Create a module for src/viewer, which subsumes some existing modules 2006-05-20 15:01:24 +00:00