]> granicus.if.org Git - mutt/commitdiff
Filter out zero width no-break space (U+FEFF).
authorVincent Lefevre <vincent@vinc17.net>
Tue, 23 Aug 2016 11:32:31 +0000 (13:32 +0200)
committerVincent Lefevre <vincent@vinc17.net>
Tue, 23 Aug 2016 11:32:31 +0000 (13:32 +0200)
mbyte.c

diff --git a/mbyte.c b/mbyte.c
index 3df143f5b536c7c6d24baecd4c00ab632b17235a..8d5d075cb653340bbd1de178abc334ba7c26c6d0 100644 (file)
--- 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;