1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Cosmetic.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4372 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Emanuele Giaquinta 2006-09-20 23:47:20 +00:00 committed by exg
parent 4d9895ea77
commit 66ae6d0876

View File

@ -30,7 +30,7 @@ static gboolean recode_get_charset(const char **charset)
*charset = settings_get_str("term_charset");
if (**charset)
/* we use the same test as in src/fe-text/term.c:123 */
return !g_strcasecmp(*charset, "utf-8");
return (g_strcasecmp(*charset, "utf-8") == 0);
#ifdef HAVE_GLIB2
return g_get_charset(charset);
@ -50,6 +50,7 @@ gboolean is_utf8(void)
static gboolean is_translit(const char *charset)
{
char *pos;
pos = stristr(charset, "//translit");
return (pos != NULL);
}