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: mutt-1-8-rel~151 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=93b33e41b06e1070f7a09ae1eb0b0ce859609eb3;p=mutt Filter out zero width no-break space (U+FEFF). --- diff --git a/mbyte.c b/mbyte.c index 3df143f5..8d5d075c 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;