mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
UTF-8: Reuse the translation table if it is from the same charset.
This change makes ELinks more efficient and causes bug 782 to occur far less often. (That does not mean the bug should not be fixed.)
This commit is contained in:
parent
b1c8eb5572
commit
143d95e927
@ -573,6 +573,7 @@ get_translation_table_to_utf_8(int from)
|
||||
if (from == -1) return NULL;
|
||||
from &= ~SYSTEM_CHARSET_FLAG;
|
||||
if (from == lfr) return utf_table;
|
||||
lfr = from;
|
||||
if (utf_table_init)
|
||||
memset(utf_table, 0, sizeof(utf_table)),
|
||||
utf_table_init = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user