From f2c2b28af4d40a19a753f5f91aa0bb9be05b0d40 Mon Sep 17 00:00:00 2001 From: hiro Date: Wed, 14 Mar 2007 02:59:08 +0000 Subject: conv_encode_header(): fixed wrong handling of quotation in continuing multi-byte strings. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1565 ee746299-78ed-0310-b773-934348b2243d --- libsylph/codeconv.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libsylph/codeconv.c') diff --git a/libsylph/codeconv.c b/libsylph/codeconv.c index b7554fa8..2911aff7 100644 --- a/libsylph/codeconv.c +++ b/libsylph/codeconv.c @@ -2263,9 +2263,13 @@ void conv_encode_header(gchar *dest, gint len, const gchar *src, p += mb_len; } else if (cur_len == 0) { LBREAK_IF_REQUIRED(1, FALSE); + if (*p == '"') + in_quote ^= TRUE; continue; } else { cont = TRUE; + if (*p == '"') + in_quote ^= TRUE; break; } } -- cgit v1.2.3