diff options
Diffstat (limited to 'mail/sylpheed-gtk2/files/patch-encoding')
-rw-r--r-- | mail/sylpheed-gtk2/files/patch-encoding | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/mail/sylpheed-gtk2/files/patch-encoding b/mail/sylpheed-gtk2/files/patch-encoding deleted file mode 100644 index 3522a934e587..000000000000 --- a/mail/sylpheed-gtk2/files/patch-encoding +++ /dev/null @@ -1,46 +0,0 @@ ---- src/procmime.c.orig Thu Oct 21 17:25:19 2004 -+++ src/procmime.c Thu Oct 21 18:12:24 2004 -@@ -694,7 +694,7 @@ - if (mimeinfo->mime_type == MIME_TEXT) { - while (fgets(buf, sizeof(buf), tmpfp) != NULL) { - #warning FIXME_GTK2 -- str = conv_codeset_strdup(buf, src_codeset, NULL); -+ str = conv_codeset_strdup(buf, src_codeset, CS_UTF_8); - if (str) { - fputs(str, outfp); - g_free(str); ---- src/unmime.c.orig Thu Oct 21 17:25:20 2004 -+++ src/unmime.c Thu Oct 21 17:37:45 2004 -@@ -113,7 +113,7 @@ - } - - /* convert to locale encoding */ -- conv_str = conv_codeset_strdup(decoded_text, charset, NULL); -+ conv_str = conv_codeset_strdup(decoded_text, charset, CS_UTF_8); - if (conv_str) { - len = strlen(conv_str); - memcpy(outp, conv_str, len); ---- src/codeconv.c.orig Thu Oct 21 22:08:15 2004 -+++ src/codeconv.c Thu Oct 21 22:08:34 2004 -@@ -1651,8 +1651,20 @@ - Xalloca(buf, buflen, return); - conv_anytodisp(buf, buflen, str); - unmime_header(outbuf, buf); -- } else -+ } else { -+ gchar *tmp; - unmime_header(outbuf, str); -+ if (outbuf && !g_utf8_validate(outbuf, -1, NULL)) { -+ tmp = conv_codeset_strdup(outbuf, -+ conv_get_current_charset_str(), -+ CS_UTF_8); -+ if (tmp) { -+ strncpy(outbuf, tmp, outlen-1); -+ g_free(tmp); -+ } -+ } -+ } -+ - } - - #define MAX_LINELEN 76 |