diff tests/test-patchbomb @ 9715:f0e99a2eac76

patchbomb: fix handling of email addresses with Unicode domains (IDNA) dom.encode('idna') requires dom to be a Unicode string.
author Marti Raudsepp <marti@juffo.org>
date Thu, 05 Nov 2009 10:49:28 +0100
parents d051db8e9e44
children 732fc0e9d411
line wrap: on
line diff
--- a/tests/test-patchbomb	Thu Nov 05 11:05:13 2009 +0100
+++ b/tests/test-patchbomb	Thu Nov 05 10:49:28 2009 +0100
@@ -170,3 +170,10 @@
 echo "% test multiple flags for multiple patches"
 hg email --date '1970-1-1 0:1' -n --flag fooFlag --flag barFlag -f quux -t foo \
  -c bar -s test -r 0:1 | fixheaders
+
+echo "% test multi-byte domain parsing"
+UUML=`echo -en '\xfc'`
+export HGENCODING=iso-8859-1
+hg email --date '1980-1-1 0:1' -m tmp.mbox -f quux -t "bar@${UUML}nicode.com" \
+  -s test -r 0
+cat tmp.mbox | fixheaders