From a7980fcffcf3f91e7f1d64fda99df2b1cefdd6c4 Mon Sep 17 00:00:00 2001 From: Kalle Olavi Niemitalo Date: Thu, 26 Apr 2007 21:39:46 +0300 Subject: [PATCH] Bugs 879, 928, 947: Specially map U+00A0 and U+00AD in translation tables. [ Backported from commit da3c8c5ce24e365996087f8206b375548193422c in ELinks 0.12.GIT. --KON ] --- src/intl/charsets.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/intl/charsets.c b/src/intl/charsets.c index 01cd1e9ab..195f1db17 100644 --- a/src/intl/charsets.c +++ b/src/intl/charsets.c @@ -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]);