[PATCH 1 of 2] tests: unify test-patchbomb

Christian Ebert blacktrash at gmx.net
Tue Aug 17 04:41:50 CDT 2010


* Matt Mackall on Monday, August 16, 2010 at 17:58:46 -0500
> On Mon, 2010-08-16 at 22:20 +0200, Mads Kiilerich wrote:
>> Martin Geisler wrote, On 08/16/2010 08:51 PM:
>>> Even though you mailed the patch using the patchbomb extension, I could
>>> not apply it directly. The problem was the hunk that deleted the old
>>> patchbomb.out file, which had a "ö" encoded in both UTF-8 and Latin-1.
>>> 
>>> I'm not sure, but I guess the mail ought to have been quoted-printable
>>> encoded or something like that. Instead it just had:
>>> 
>>>   Content-Type: text/plain; charset="us-ascii"
>>>   Content-Transfer-Encoding: 8bit
>> 
>> I don't think any mail headers could have made that work reliable and 
>> rfc-compliant.
> 
> Except application/binary. This is a good example of a text file that
> has no consistent encoding. Or, equally, a good reminder that the
> categories text and binary are ill-defined.

I tried force application/binary for patches that are not
either ascii or utf-8 when I implemented email.charsets, but
somehow didn't find a way to do this via the email module. Should
I look into this again? Anyone with a pointer to nudge me in the
right direction?

> FWIW, my email client (a horrid GUI thing) handled it seamlessly - it
> simply wrote out the bytes it received without trying to do any
> external->internal->external transcoding.

Mutt handles it fine as well when you just copy the message to an
mbox.

c
-- 
Die Wolke Wolfgang
Eine Kindergeschichte mit Bildern. Von Michael Weber.
Das Buch   -->> http://www.blacktrash.org/baustellen/index.html#wolkewolfgang
Online     -->> http://www.blacktrash.org/wolkewolfgang/


More information about the Mercurial-devel mailing list