Mercurial > hg
diff tests/test-patchbomb-bookmark.t @ 34310:2d0c306a88c2
mail: encode long unicode lines in emails properly (issue5687)
3e544c074459 introduced a bug: emails Content-Transfer-Encoding
is silently replaced with 'quoted-printable' while any other
encoding could be used by underlying code. The problem is revealed
when a long unicode line is encoded.
The patch implements proper check which works for any text and
encoding.
author | Igor Ippolitov <iippolitov@gmail.com> |
---|---|
date | Tue, 26 Sep 2017 16:14:57 +0300 |
parents | c2fe2b00db53 |
children | d7007b807fa2 |
line wrap: on
line diff
--- a/tests/test-patchbomb-bookmark.t Sat Sep 23 14:58:40 2017 -0700 +++ b/tests/test-patchbomb-bookmark.t Tue Sep 26 16:14:57 2017 +0300 @@ -31,8 +31,8 @@ Cc: displaying [PATCH 0 of 2] bookmark ... + MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" - MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [PATCH 0 of 2] bookmark Message-Id: <patchbomb.347155260@*> (glob) @@ -43,8 +43,8 @@ displaying [PATCH 1 of 2] first ... + MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" - MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [PATCH 1 of 2] first X-Mercurial-Node: accde9b8b6dce861c185d0825c1affc09a79cb26 @@ -74,8 +74,8 @@ +first displaying [PATCH 2 of 2] second ... + MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" - MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [PATCH 2 of 2] second X-Mercurial-Node: 417defd1559c396ba06a44dce8dc1c2d2d653f3f @@ -138,8 +138,8 @@ Cc: displaying [PATCH] bookmark ... + MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" - MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [PATCH] bookmark X-Mercurial-Node: 8dab2639fd35f1e337ad866c372a5c44f1064e3c