From: Rocco Rutte Date: Mon, 22 Jun 2009 15:17:27 +0000 (+0200) Subject: Fix included iswupper(). Closes #3276. X-Git-Tag: neomutt-20160307~532 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8be387ec6bd16faf875d41dbdd770f2ed91f556b;p=neomutt Fix included iswupper(). Closes #3276. --- diff --git a/mbyte.c b/mbyte.c index bb773cfa6..c0c0fa7ea 100644 --- a/mbyte.c +++ b/mbyte.c @@ -289,13 +289,15 @@ static int iswupper_ucs (wint_t x) { /* Only works for x < 0x130 */ if ((0x60 < x && x < 0x7b) || (0xe0 <= x && x < 0xff && x != 0xf7)) + return 0; + else if ((0x40 < x && x < 0x5b) || 0xbf < x && x < 0xde) return 1; else if (0x100 <= x && x < 0x130) return 1; else if (x == 0xb5) return 1; else if (x == 0xff) - return 1; + return 0; else return 0; }