From: Ingo Bürk Date: Tue, 18 Oct 2016 06:29:31 +0000 (+0200) Subject: Disable pango markup for plain-text input in i3bar. (#2505) X-Git-Tag: 4.13~18 X-Git-Url: https://git.sur5r.net/?p=i3%2Fi3;a=commitdiff_plain;h=83452a3472c48898552fac18d729f6a215e43063 Disable pango markup for plain-text input in i3bar. (#2505) fixes #2498 --- diff --git a/i3bar/src/child.c b/i3bar/src/child.c index 3570dde9..1b2dc94c 100644 --- a/i3bar/src/child.c +++ b/i3bar/src/child.c @@ -359,11 +359,13 @@ static void read_flat_input(char *buffer, int length) { I3STRING_FREE(first->full_text); /* Remove the trailing newline and terminate the string at the same * time. */ - if (buffer[length - 1] == '\n' || buffer[length - 1] == '\r') + if (buffer[length - 1] == '\n' || buffer[length - 1] == '\r') { buffer[length - 1] = '\0'; - else + } else { buffer[length] = '\0'; - first->full_text = i3string_from_markup(buffer); + } + + first->full_text = i3string_from_utf8(buffer); } static bool read_json_input(unsigned char *input, int length) {