aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-charset-map.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-charset-map.c')
-rw-r--r--camel/camel-charset-map.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/camel/camel-charset-map.c b/camel/camel-charset-map.c
index d03da27c61..c007658553 100644
--- a/camel/camel-charset-map.c
+++ b/camel/camel-charset-map.c
@@ -405,17 +405,18 @@ camel_charset_get_iconv_friendly_name (const char *name)
new_charset[3] = '-';
memcpy (new_charset + 4, name + 3, len - 3);
new_charset[len + 1] = '\0';
- g_hash_table_insert (iconv_charsets, g_strdup (name), new_charset);
} else {
/* *shrug* - add it to the hash table just the way it is? */
new_charset = g_strdup (name);
- g_hash_table_insert (iconv_charsets, g_strdup (name), new_charset);
}
+ g_hash_table_insert (iconv_charsets, g_strdup (name), new_charset);
charset = new_charset;
}
ICONV_CHARSETS_UNLOCK ();
+ g_warning ("camel_charset_get_iconv_friendly_name (\"%s\") => \"%s\"", name, charset);
+
return charset;
}