]> git.sur5r.net Git - i3/i3status/blobdiff - src/output.c
fix: use SYSCONFDIR in error message
[i3/i3status] / src / output.c
index 1c8c415ada6b4bf714e9e92caf8f52d36f0cc65b..937fa602210f52b95141987000f4379ca3065b69 100644 (file)
@@ -1,4 +1,5 @@
 // vim:ts=4:sw=4:expandtab
+#include <config.h>
 #include <stdbool.h>
 #include <string.h>
 #include <stdio.h>
@@ -111,12 +112,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;
         }
     }