From b130109429aa4046e682324de3ac2f31b31fe563 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 19 Nov 2019 17:30:38 +0000 Subject: [PATCH] [Minor] Eek, try to workaround libicu stupidity --- src/libmime/mime_encoding.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libmime/mime_encoding.c b/src/libmime/mime_encoding.c index 4ddba8ca0..d98f96b85 100644 --- a/src/libmime/mime_encoding.c +++ b/src/libmime/mime_encoding.c @@ -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 */ -- 2.39.5