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 | |
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
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ChangeLog.ja | 5 | ||||
-rw-r--r-- | libsylph/codeconv.c | 4 |
3 files changed, 14 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2007-03-14 + + * libsylph/codeconv.c: conv_encode_header(): fixed wrong handling + of quotation in continuing multi-byte strings. + 2007-03-13 * src/summaryview.c: fixed crash on exit when the order of summary diff --git a/ChangeLog.ja b/ChangeLog.ja index e3586d75..fa1e6243 100644 --- a/ChangeLog.ja +++ b/ChangeLog.ja @@ -1,3 +1,8 @@ +2007-03-14 + + * libsylph/codeconv.c: conv_encode_header(): 継続するマルチバイト + 文字列における引用符の処理に誤りがあったのを修正。 + 2007-03-13 * src/summaryview.c: サマリのカラムの順序を DnD で変更した場合 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; } } |