]> granicus.if.org Git - neomutt/commitdiff
is_display_corrupting_utf8
authorRichard Russon <rich@flatcap.org>
Tue, 11 Apr 2017 17:56:32 +0000 (18:56 +0100)
committerRichard Russon <rich@flatcap.org>
Tue, 11 Apr 2017 23:29:59 +0000 (00:29 +0100)
mbyte.c
mbyte.h

diff --git a/mbyte.c b/mbyte.c
index cef56e1f46821ce3399e2f8c924b17f743116141..53d27e32bf07e3a44329c846664355da2da3e908 100644 (file)
--- a/mbyte.c
+++ b/mbyte.c
@@ -524,7 +524,7 @@ wchar_t replacement_char (void)
   return Charset_is_utf8 ? 0xfffd : '?';
 }
 
-int is_display_corrupting_utf8 (wchar_t wc)
+bool is_display_corrupting_utf8 (wchar_t wc)
 {
   if (wc == (wchar_t)0x200f ||   /* bidi markers: #3827 */
       wc == (wchar_t)0x200e ||
@@ -534,9 +534,9 @@ int is_display_corrupting_utf8 (wchar_t wc)
        wc <= (wchar_t)0x2069) ||
       (wc >= (wchar_t)0x202a &&  /* misc directional markers: #3854 */
        wc <= (wchar_t)0x202e))
-    return 1;
+    return true;
   else
-    return 0;
+    return false;
 }
 
 int mutt_filter_unprintable (char **s)
diff --git a/mbyte.h b/mbyte.h
index 3ad916c1d60c35e52a0eac231d236090a92c602f..27f43038822cdbfd8aad0cc6242756aab0b77bf5 100644 (file)
--- a/mbyte.h
+++ b/mbyte.h
@@ -63,6 +63,6 @@ int wcwidth (wchar_t wc);
 void mutt_set_charset(char *charset);
 extern int Charset_is_utf8;
 wchar_t replacement_char(void);
-int is_display_corrupting_utf8(wchar_t wc);
+bool is_display_corrupting_utf8(wchar_t wc);
 
 #endif /* _MUTT_MBYTE_H */