]> granicus.if.org Git - neomutt/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)
committerRichard Russon <rich@flatcap.org>
Tue, 13 Sep 2016 15:15:01 +0000 (16:15 +0100)
mbyte.c

diff --git a/mbyte.c b/mbyte.c
index aa4d0bd128c7308ea0c17298eecd81d5282becfc..faa3b60c2833f39547db8b1332500a25d5b3569a 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;