* cosmetic
This commit is contained in:
@ -413,11 +413,10 @@ convert_to_utf8 (GMimePart *part, char *buffer)
|
|||||||
charset = g_mime_content_type_get_parameter (ctype, "charset");
|
charset = g_mime_content_type_get_parameter (ctype, "charset");
|
||||||
if (charset) {
|
if (charset) {
|
||||||
char *utf8;
|
char *utf8;
|
||||||
utf8 = mu_str_convert_to_utf8
|
if ((utf8 = mu_str_convert_to_utf8
|
||||||
(buffer, g_mime_charset_iconv_name (charset));
|
(buffer, g_mime_charset_iconv_name (charset)))) {
|
||||||
if (utf8) {
|
|
||||||
g_free (buffer);
|
g_free (buffer);
|
||||||
return utf8;
|
buffer = utf8;
|
||||||
}
|
}
|
||||||
} else if (!g_utf8_validate (buffer, -1, NULL)) {
|
} else if (!g_utf8_validate (buffer, -1, NULL)) {
|
||||||
/* if it's already utf8, nothing to do otherwise: no
|
/* if it's already utf8, nothing to do otherwise: no
|
||||||
|
|||||||
Reference in New Issue
Block a user