]> git.sur5r.net Git - i3/i3status/commitdiff
remove useless checks (we use char, not unsigned char) 208/head
authorMichael Stapelberg <michael@stapelberg.de>
Wed, 8 Mar 2017 18:24:09 +0000 (19:24 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Wed, 8 Mar 2017 18:24:09 +0000 (19:24 +0100)
fixes compilation warnings

src/output.c

index 1c8c415ada6b4bf714e9e92caf8f52d36f0cc65b..663700e691512d6e3b89d2834adc384d4697206d 100644 (file)
@@ -111,12 +111,11 @@ void maybe_escape_markup(char *text, char **buffer) {
             default:
                 if ((0x1 <= *text && *text <= 0x8) ||
                     (0xb <= *text && *text <= 0xc) ||
-                    (0xe <= *text && *text <= 0x1f) ||
-                    (0x7f <= *text && *text <= 0x84) ||
-                    (0x86 <= *text && *text <= 0x9f))
+                    (0xe <= *text && *text <= 0x1f)) {
                     *buffer += sprintf(*buffer, "&#x%x;", *text);
-                else
+                } else {
                     *(*buffer)++ = *text;
+                }
                 break;
         }
     }