[PATCH 3 of 3] mail: fix handling of email addresses with Unicode domains (IDNA)

Benoit Boissinot benoit.boissinot at ens-lyon.org
Fri Nov 6 04:42:12 CST 2009


On Thu, Nov 05, 2009 at 11:59:15AM +0100, Dirkjan Ochtman wrote:
> On Wed, Nov 4, 2009 at 18:53, Marti Raudsepp <marti at juffo.org> wrote:
> > # HG changeset patch
> > # User Marti Raudsepp <marti at juffo.org>
> > # Date 1257356232 -7200
> > # Node ID f20bad63a3d374b38c1c1fdde05988e09bde8a00
> > # Parent  e54459b6f1e21ebf847bbfb5d468eb25b179ee53
> > mail: fix handling of email addresses with Unicode domains (IDNA)
> >
> > dom.encode('idna') requires dom to be a Unicode string.
> 
> I've put this in crew:
> 
> changeset:   9715:f0e99a2eac76
> user:        Marti Raudsepp <marti at juffo.org>
> date:        Thu Nov 05 10:49:28 2009 +0100
> summary:     patchbomb: fix handling of email addresses with Unicode
> domains (IDNA)
> 
> (Had to re-do the test because it was relying on the other patches.)
> 

It breaks here (ubuntu karmic):

ERROR: test-patchbomb output changed
--- Expected output 
+++ Test output 
@@ -1484,7 +1484,7 @@
 User-Agent: Mercurial-patchbomb
 Date: Tue, 01 Jan 1980 00:01:00 +0000
 From: quux
-To: bar at xn--nicode-2ya.com
+To: bar at -en\xfcnicode.com
 
 # HG changeset patch
 # User test

regards,

Benoit

-- 
:wq


More information about the Mercurial-devel mailing list