diff --git a/src/intl/charsets.c b/src/intl/charsets.c index 3d20db7d3..01cd1e9ab 100644 --- a/src/intl/charsets.c +++ b/src/intl/charsets.c @@ -143,7 +143,7 @@ u2cp_(unicode_val_T u, int to, int no_nbsp_hack) /* To mark non breaking spaces, we use a special char NBSP_CHAR. */ if (u == UCS_NO_BREAK_SPACE) return no_nbsp_hack ? " " : NBSP_CHAR_STRING; - if (u == 0xad) return ""; + if (u == UCS_SOFT_HYPHEN) return ""; if (u < 0xa0) { unicode_val_T strange = strange_chars[u - 0x80]; diff --git a/src/intl/charsets.h b/src/intl/charsets.h index 35b1a6bfd..91daffec6 100644 --- a/src/intl/charsets.h +++ b/src/intl/charsets.h @@ -6,6 +6,9 @@ typedef uint32_t unicode_val_T; /* U+00A0 NO-BREAK SPACE. */ #define UCS_NO_BREAK_SPACE ((unicode_val_T) 0x00A0) +/* U+00AD SOFT HYPHEN. */ +#define UCS_SOFT_HYPHEN ((unicode_val_T) 0x00AD) + /* UCS/Unicode replacement character. */ #define UCS_NO_CHAR ((unicode_val_T) 0xFFFD)