mirror of
https://github.com/irssi/irssi.git
synced 2025-01-03 14:56:47 -05:00
Amend fix for bug #392, assume utf-8 encoding for an ascii string in
which no escape character occurs. git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4928 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
ccb8e04a01
commit
a8680fb7da
@ -108,6 +108,8 @@ char *recode_in(const SERVER_REC *server, const char *str, const char *target)
|
||||
str_is_utf8 = 0;
|
||||
if (!str_is_ascii(str))
|
||||
str_is_utf8 = g_utf8_validate(str, len, NULL);
|
||||
else if (!strchr(str, '\e'))
|
||||
str_is_utf8 = 1;
|
||||
autodetect = settings_get_bool("recode_autodetect_utf8");
|
||||
|
||||
if (autodetect && str_is_utf8)
|
||||
|
Loading…
Reference in New Issue
Block a user