commit 9418101293dd8152bd3a6be34da96fe266eb1166
parent dc3a2ffc4ad9e97fc63d432ee860584339c01ee8
Author: FRIGN <dev@frign.de>
Date: Sun, 15 Feb 2015 16:27:45 +0100
Fix isprintrune()'s behaviour
I somehow missed this issue. A rune can not be smaller than the left
range-delimiter and bigger than the right range-delimiter at the
same time.
The real check has to check if either condition applies.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libutf/isprintrune.c b/libutf/isprintrune.c
@@ -6,5 +6,5 @@ int
isprintrune(Rune r)
{
return !iscntrlrune(r) && (r != 0x2028) && (r != 0x2029) &&
- (r < 0xFFF9) && (r > 0xFFFB);
+ ((r < 0xFFF9) || (r > 0xFFFB));
}