1
0
mirror of https://github.com/irssi/irssi.git synced 2024-06-30 06:45:25 +00: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:
Emanuele Giaquinta 2008-11-29 10:45:58 +00:00 committed by exg
parent ccb8e04a01
commit a8680fb7da

View File

@ -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)