1
0
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:
Kalle Olavi Niemitalo 2006-07-31 20:21:10 +03:00 committed by Jonas Fonseca
parent b1c8eb5572
commit 143d95e927

View File

@ -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;