mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Amend check for non printable chars to filter control chars 80-9F in an utf8 locale, bug #460.
Note: this was and is still broken with koi8-r. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4413 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
9d72e78ccd
commit
7c48fc2fb3
@ -232,11 +232,11 @@ static void gui_entry_draw_from(GUI_ENTRY_REC *entry, int pos)
|
||||
|
||||
if (entry->hidden)
|
||||
term_addch(root_window, ' ');
|
||||
else if (*p >= 32 && (entry->utf8 || (*p & 127) >= 32))
|
||||
else if (*p >= 32 && (*p < 0x7F || *p > 0x9F))
|
||||
term_add_unichar(root_window, *p);
|
||||
else {
|
||||
term_set_color(root_window, ATTR_RESET|ATTR_REVERSE);
|
||||
term_addch(root_window, *p+'A'-1);
|
||||
term_addch(root_window, (*p & 127)+'A'-1);
|
||||
term_set_color(root_window, ATTR_RESET);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user