From 93b33e41b06e1070f7a09ae1eb0b0ce859609eb3 Mon Sep 17 00:00:00 2001 From: Vincent Lefevre Date: Tue, 23 Aug 2016 13:32:31 +0200 Subject: [PATCH] Filter out zero width no-break space (U+FEFF). --- mbyte.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.50.1