diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2007-03-14 02:59:08 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2007-03-14 02:59:08 +0000 |
commit | f2c2b28af4d40a19a753f5f91aa0bb9be05b0d40 (patch) | |
tree | af191467f1d34bf66a50e606d2a894c6c256bb49 /libsylph | |
parent | 43dc5a3eafdea5b911b30307620bc69d4374ddce (diff) |
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
Diffstat (limited to 'libsylph')
-rw-r--r-- | libsylph/codeconv.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; } } |