[PATCH] Fix generation of Unicode character on AIX in test-patchbomb
Jim Hague
jim.hague at acm.org
Tue Jan 5 06:54:03 CST 2010
# HG changeset patch
# User Jim Hague <jim.hague at acm.org>
# Date 1262696025 0
# Node ID f4bdbb74b11b9095913fa18451d5d7caa4b5e00c
# Parent f5e55f1ca92738458295ca9f82f31c54a89babbb
Fix generation of Unicode character on AIX in test-patchbomb.
On AIX, ksh builtin printf does not understand \NNN and the test fails.
Use python to generate the correct character for portability.
diff -r f5e55f1ca927 -r f4bdbb74b11b tests/test-patchbomb
--- a/tests/test-patchbomb Mon Jan 04 01:11:18 2010 +0100
+++ b/tests/test-patchbomb Tue Jan 05 12:53:45 2010 +0000
@@ -176,7 +176,7 @@
cat tmp.mbox | fixheaders
echo "% test multi-byte domain parsing"
-UUML=`printf '\374'`
+UUML=`python -c 'import sys; sys.stdout.write("\374")'`
HGENCODING=iso-8859-1
export HGENCODING
hg email --date '1980-1-1 0:1' -m tmp.mbox -f quux -t "bar@${UUML}nicode.com" \
More information about the Mercurial-devel
mailing list