From: Vincent Lefevre Date: Tue, 23 Aug 2016 11:32:31 +0000 (+0200) Subject: Filter out zero width no-break space (U+FEFF). X-Git-Tag: neomutt-20170225~32^2~130 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=041b83f365949bd828c32ac58abd591de781f52a;p=neomutt Filter out zero width no-break space (U+FEFF). --- diff --git a/mbyte.c b/mbyte.c index 3df143f5b..8d5d075cb 100644 --- a/mbyte.c +++ b/mbyte.c @@ -530,6 +530,7 @@ int is_display_corrupting_utf8 (wchar_t wc) if (wc == (wchar_t)0x200f || /* bidi markers: #3827 */ wc == (wchar_t)0x200e || wc == (wchar_t)0x00ad || /* soft hyphen: #3848 */ + wc == (wchar_t)0xfeff || /* zero width no-break space */ (wc >= (wchar_t)0x202a && /* misc directional markers: #3854 */ wc <= (wchar_t)0x202e)) return 1;