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-20160916~9^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2f4417e898ac719dee6b0ccb53668533410869e1;p=neomutt Filter out zero width no-break space (U+FEFF). --- diff --git a/mbyte.c b/mbyte.c index aa4d0bd12..faa3b60c2 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;