]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Eek, try to workaround libicu stupidity
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 19 Nov 2019 17:30:38 +0000 (17:30 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 19 Nov 2019 17:30:38 +0000 (17:30 +0000)
src/libmime/mime_encoding.c

index 4ddba8ca0664701161ae06fe0a578f28c0b2fb44..d98f96b8537d10e73797e950a4206f4e48bd131c 100644 (file)
@@ -284,7 +284,7 @@ rspamd_mime_detect_charset (const rspamd_ftok_t *in, rspamd_mempool_t *pool)
        s = g_hash_table_lookup (sub_hash, ret);
 
        if (s) {
-               return ucnv_getCanonicalName (s->canon, "MIME", &uc_err);
+               ret = (char *)s->canon;
        }
 
        /* Just fucking stupid */