From 56902320b4f5ff1e79502b49f63ce94a40bc84f5 Mon Sep 17 00:00:00 2001 From: Emanuele Giaquinta Date: Thu, 3 May 2007 21:37:43 +0000 Subject: [PATCH] Revert, do not use IS_PRINTABLE in reverse_controls. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4475 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-text/statusbar.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fe-text/statusbar.c b/src/fe-text/statusbar.c index 2e54f067..9f1b09b0 100644 --- a/src/fe-text/statusbar.c +++ b/src/fe-text/statusbar.c @@ -661,7 +661,9 @@ static char *reverse_controls(const char *str) out = g_string_new(NULL); while (*str != '\0') { - if (!IS_PRINTABLE((unsigned char) *str)) { + if ((unsigned char) *str < 32 || + (term_type == TERM_TYPE_8BIT && + (unsigned char) (*str & 0x7f) < 32)) { /* control char */ g_string_sprintfa(out, "%%8%c%%8", 'A'-1 + (*str & 0x7f));