diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-11-19 16:50:50 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-11-19 16:50:50 +0000 |
commit | 4231a70cc7e5588ecbcefdcab39f0efd8c3be158 (patch) | |
tree | dd6b971c3b761fccbb659bb6a60e53abb9ed4fe0 /src/libmime/mime_encoding.c | |
parent | 9ab726cd1d7a5b2d13fd076f300c68084b56713c (diff) | |
download | rspamd-4231a70cc7e5588ecbcefdcab39f0efd8c3be158.tar.gz rspamd-4231a70cc7e5588ecbcefdcab39f0efd8c3be158.zip |
[Minor] Use ucnv_getCanonicalName instead of ucnv_getStandardName
Diffstat (limited to 'src/libmime/mime_encoding.c')
-rw-r--r-- | src/libmime/mime_encoding.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libmime/mime_encoding.c b/src/libmime/mime_encoding.c index 7ef492f9d..4ddba8ca0 100644 --- a/src/libmime/mime_encoding.c +++ b/src/libmime/mime_encoding.c @@ -284,25 +284,25 @@ 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_getStandardName (s->canon, "IANA", &uc_err); + return ucnv_getCanonicalName (s->canon, "MIME", &uc_err); } /* Just fucking stupid */ - cset = ucnv_getStandardName (ret, "IANA", &uc_err); + cset = ucnv_getCanonicalName (ret, "MIME", &uc_err); if (cset == NULL) { uc_err = U_ZERO_ERROR; - cset = ucnv_getStandardName (ret, "MIME", &uc_err); + cset = ucnv_getCanonicalName (ret, "IANA", &uc_err); } if (cset == NULL) { uc_err = U_ZERO_ERROR; - cset = ucnv_getStandardName (ret, "WINDOWS", &uc_err); + cset = ucnv_getCanonicalName (ret, "WINDOWS", &uc_err); } if (cset == NULL) { uc_err = U_ZERO_ERROR; - cset = ucnv_getStandardName (ret, "JAVA", &uc_err); + cset = ucnv_getCanonicalName (ret, "JAVA", &uc_err); } return cset; |