1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-10-27 08:00:32 -04:00

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

This commit is contained in:
Kalle Olavi Niemitalo 2007-04-26 21:39:46 +03:00 committed by Witold Filipczyk
parent c108a425ce
commit 55102e5f8a

View File

@ -909,6 +909,10 @@ get_translation_table(int from, int to)
if (is_cp_ptr_utf8(&codepages[from])) {
int i;
/* Map U+00A0 and U+00AD the same way as u2cp() would. */
add_utf8(table, UCS_NO_BREAK_SPACE, strings[NBSP_CHAR]);
add_utf8(table, UCS_SOFT_HYPHEN, "");
for (i = 0x80; i <= 0xFF; i++)
if (codepages[to].highhalf[i - 0x80] != 0xFFFF)
add_utf8(table,