diff options
author | Oliver Lehmann <oliver@FreeBSD.org> | 2004-10-21 20:47:59 +0000 |
---|---|---|
committer | Oliver Lehmann <oliver@FreeBSD.org> | 2004-10-21 20:47:59 +0000 |
commit | 40d3a64ef2d3b52ef422ad5ef55f03bba73bc702 (patch) | |
tree | d873fe3417a4ea5508e146ff32d63e48ef740c8b /mail/sylpheed-gtk2 | |
parent | abbe3539ea33128d53118253b4e86567255273d4 (diff) | |
download | ports-40d3a64ef2d3b52ef422ad5ef55f03bba73bc702.tar.gz ports-40d3a64ef2d3b52ef422ad5ef55f03bba73bc702.zip |
Notes
Diffstat (limited to 'mail/sylpheed-gtk2')
-rw-r--r-- | mail/sylpheed-gtk2/files/patch-encoding | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/mail/sylpheed-gtk2/files/patch-encoding b/mail/sylpheed-gtk2/files/patch-encoding index e7f74b25709b..3522a934e587 100644 --- a/mail/sylpheed-gtk2/files/patch-encoding +++ b/mail/sylpheed-gtk2/files/patch-encoding @@ -20,3 +20,27 @@ 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 |