1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-29 04:45:57 -04:00

Bug #104 recode treats multibyte jp characters as utf8. Patch by Valentin

Batz


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3285 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2004-08-21 07:05:16 +00:00 committed by cras
parent df9f46cf4d
commit 82052118a7

View File

@ -54,11 +54,8 @@ char *recode_in(const char *str, const char *target)
translit = settings_get_bool("recode_transliterate");
/* check if the str is UTF-8 encoded as first */
if (target && !str_is_utf8)
if (target != NULL)
from = iconfig_get_str("conversions", target, NULL);
else if (target && str_is_utf8)
from = "UTF-8";
term_is_utf8 = recode_get_charset(&to);