1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-29 03:17:53 -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 Kalle Olavi Niemitalo
parent 0b7a56f89a
commit da3c8c5ce2

View File

@ -909,6 +909,10 @@ get_translation_table(int from, int to)
if (is_cp_ptr_utf8(&codepages[from])) { if (is_cp_ptr_utf8(&codepages[from])) {
int i; 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++) for (i = 0x80; i <= 0xFF; i++)
if (codepages[to].highhalf[i - 0x80] != 0xFFFF) if (codepages[to].highhalf[i - 0x80] != 0xFFFF)
add_utf8(table, add_utf8(table,