summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2004-08-21 07:05:16 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2004-08-21 07:05:16 +0000
commit82052118a702d1570987ea8bd6bf40006857157e (patch)
tree37d888eb5779930ee6b8c68bd190bd3f5ddefa74 /src/core
parentdf9f46cf4d7d1bc3f21d3306ca5868362aebb4e5 (diff)
downloadirssi-82052118a702d1570987ea8bd6bf40006857157e.zip
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
Diffstat (limited to 'src/core')
-rw-r--r--src/core/recode.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/core/recode.c b/src/core/recode.c
index 733cc15f..aa9f8315 100644
--- a/src/core/recode.c
+++ b/src/core/recode.c
@@ -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);