[hackers] [sbase] Fix isprintrune()'s behaviour || FRIGN

From: <git_AT_suckless.org>
Date: Sun, 15 Feb 2015 17:04:49 +0100 (CET)

commit a79acef4c44e20be154b8525ef56839894c8e187
Author: FRIGN <dev_AT_frign.de>
Date: Sun Feb 15 16:27:45 2015 +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.

diff --git a/libutf/isprintrune.c b/libutf/isprintrune.c
index 8fc8c33..f6e2fa4 100644
--- a/libutf/isprintrune.c
+++ b/libutf/isprintrune.c
_AT_@ -6,5 +6,5 @@ int
 isprintrune(Rune r)
 {
         return !iscntrlrune(r) && (r != 0x2028) && (r != 0x2029) &&
- (r < 0xFFF9) && (r > 0xFFFB);
+ ((r < 0xFFF9) || (r > 0xFFFB));
 }
Received on Sun Feb 15 2015 - 17:04:49 CET

This archive was generated by hypermail 2.3.0 : Sun Feb 15 2015 - 17:12:13 CET