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

Bug 947, u2cp_: Use UCS_NO_BREAK_SPACE instead of 0xa0.

[ Backported from commit 9d6c0b13e8 in
  ELinks 0.12.GIT.  --KON ]
This commit is contained in:
Kalle Olavi Niemitalo 2007-04-22 22:37:12 +03:00 committed by Kalle Olavi Niemitalo
parent 806fe16027
commit a04af526ed
2 changed files with 5 additions and 1 deletions

View File

@ -141,7 +141,8 @@ u2cp_(unicode_val_T u, int to, int no_nbsp_hack)
if (u < 128) return strings[u];
/* To mark non breaking spaces, we use a special char NBSP_CHAR. */
if (u == 0xa0) return no_nbsp_hack ? " " : NBSP_CHAR_STRING;
if (u == UCS_NO_BREAK_SPACE)
return no_nbsp_hack ? " " : NBSP_CHAR_STRING;
if (u == 0xad) return "";
if (u < 0xa0) {

View File

@ -3,6 +3,9 @@
typedef uint32_t unicode_val_T;
/* U+00A0 NO-BREAK SPACE. */
#define UCS_NO_BREAK_SPACE ((unicode_val_T) 0x00A0)
/* UCS/Unicode replacement character. */
#define UCS_NO_CHAR ((unicode_val_T) 0xFFFD)