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

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

This commit is contained in:
Kalle Olavi Niemitalo 2007-04-22 22:37:12 +03:00 committed by Witold Filipczyk
parent d18fc9f33d
commit e11b784067

View File

@ -185,7 +185,7 @@ u2cp_(unicode_val_T u, int to, enum nbsp_mode nbsp_mode)
/* To mark non breaking spaces in non-UTF-8 strings, we use a
* special char NBSP_CHAR. */
if (u == 0xa0) {
if (u == UCS_NO_BREAK_SPACE) {
if (nbsp_mode == NBSP_MODE_HACK) return NBSP_CHAR_STRING;
else /* NBSP_MODE_ASCII */ return " ";
}