mirror of
https://github.com/irssi/irssi.git
synced 2024-10-27 05:20:20 -04:00
Replace invalid utf-8 bytes with U+FFFD when drawing a line.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4995 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
03545934e9
commit
9fd6a3f3cf
@ -151,7 +151,7 @@ static inline unichar read_unichar(const unsigned char *data, const unsigned cha
|
||||
unichar chr = g_utf8_get_char_validated(data, -1);
|
||||
|
||||
if (chr & 0x80000000) {
|
||||
chr = *data;
|
||||
chr = 0xfffd;
|
||||
*next = data + 1;
|
||||
*width = 1;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user