summaryrefslogtreecommitdiffstats
path: root/mbyte.c
diff options
context:
space:
mode:
authorRocco Rutte <pdmef@gmx.net>2009-06-22 17:17:27 +0200
committerRocco Rutte <pdmef@gmx.net>2009-06-22 17:17:27 +0200
commit44299b6143a696e669c8a8c3fc55489bb75eeb34 (patch)
treeb09df70694a43e3d5b3f866eb76765fcdd9dcefa /mbyte.c
parentdf7c0dec723a700da0edbfa7be216f88062224b3 (diff)
Fix included iswupper(). Closes #3276.
Diffstat (limited to 'mbyte.c')
-rw-r--r--mbyte.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mbyte.c b/mbyte.c
index bb773cfa..c0c0fa7e 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;
}