aboutsummaryrefslogtreecommitdiffstats
path: root/mail/sylpheed2-devel/files
diff options
context:
space:
mode:
authoroliver <oliver@FreeBSD.org>2005-02-21 19:49:57 +0800
committeroliver <oliver@FreeBSD.org>2005-02-21 19:49:57 +0800
commitb14240f37dd7ca0ce775f887040086bf9027769c (patch)
tree8e4d6b7406413bdbce9f4c518b3f5a6c48ef7cd6 /mail/sylpheed2-devel/files
parent5d152857d0b2f823d741426f234b4378a58344cc (diff)
downloadfreebsd-ports-gnome-b14240f37dd7ca0ce775f887040086bf9027769c.tar.gz
freebsd-ports-gnome-b14240f37dd7ca0ce775f887040086bf9027769c.tar.zst
freebsd-ports-gnome-b14240f37dd7ca0ce775f887040086bf9027769c.zip
update to 1.9.3
add a patch which fixes non-7-bit-clean header handling
Diffstat (limited to 'mail/sylpheed2-devel/files')
-rw-r--r--mail/sylpheed2-devel/files/patch-src::codeconv.c24
1 files changed, 24 insertions, 0 deletions
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