mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05: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:
parent
df9f46cf4d
commit
82052118a7
@ -54,11 +54,8 @@ char *recode_in(const char *str, const char *target)
|
|||||||
|
|
||||||
translit = settings_get_bool("recode_transliterate");
|
translit = settings_get_bool("recode_transliterate");
|
||||||
|
|
||||||
/* check if the str is UTF-8 encoded as first */
|
if (target != NULL)
|
||||||
if (target && !str_is_utf8)
|
|
||||||
from = iconfig_get_str("conversions", 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);
|
term_is_utf8 = recode_get_charset(&to);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user