From b14240f37dd7ca0ce775f887040086bf9027769c Mon Sep 17 00:00:00 2001 From: oliver Date: Mon, 21 Feb 2005 11:49:57 +0000 Subject: update to 1.9.3 add a patch which fixes non-7-bit-clean header handling --- mail/sylpheed2-devel/files/patch-src::codeconv.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 mail/sylpheed2-devel/files/patch-src::codeconv.c (limited to 'mail/sylpheed2-devel/files') diff --git a/mail/sylpheed2-devel/files/patch-src::codeconv.c b/mail/sylpheed2-devel/files/patch-src::codeconv.c new file mode 100644 index 000000000000..5946301287bf --- /dev/null +++ b/mail/sylpheed2-devel/files/patch-src::codeconv.c @@ -0,0 +1,24 @@ +--- src/codeconv.c.orig Mon Feb 21 12:46:21 2005 ++++ src/codeconv.c Mon Feb 21 12:46:30 2005 +@@ -1577,8 +1577,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_locale_charset_str(), ++ CS_UTF_8); ++ if (tmp) { ++ strncpy(outbuf, tmp, outlen-1); ++ g_free(tmp); ++ } ++ } ++ } ++ + } + + #define MAX_LINELEN 76 -- cgit