1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Bugs 879, 928, 947: Specially map U+00A0 and U+00AD in translation tables.

[ Backported from commit da3c8c5ce2 in
  ELinks 0.12.GIT.  --KON ]
This commit is contained in:
Kalle Olavi Niemitalo 2007-04-26 21:39:46 +03:00 committed by Kalle Olavi Niemitalo
parent dd7a3ad95b
commit a7980fcffc

View File

@ -343,6 +343,10 @@ get_translation_table(int from, int to)
if (codepages[from].table == table_utf_8) {
int i;
/* Map U+00A0 and U+00AD the same way as u2cp() would. */
add_utf_8(table, UCS_NO_BREAK_SPACE, strings[NBSP_CHAR]);
add_utf_8(table, UCS_SOFT_HYPHEN, "");
for (i = 0; codepages[to].table[i].c; i++)
add_utf_8(table, codepages[to].table[i].u,
strings[codepages[to].table[i].c]);