mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +02: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
1 changed files with 1 additions and 4 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue