# HG changeset patch # User Jim Hague # Date 1262801013 0 # Node ID b190a8125b43fea3391fb4320bf3904f8f206262 # Parent a19d2993385d2beb8090c8669cb380b657e322af Work around AIX shell builtin printf not handling \NNN. On AIX, ksh builtin printf does not understand \NNN. Some tests use this to generate test data, and so fail on AIX. Rework these tests to use python to generate the correct characters. This fixes the tests on AIX and should be more generally portable. diff -r a19d2993385d -r b190a8125b43 tests/test-highlight --- a/tests/test-highlight Fri Jan 15 21:08:04 2010 +0100 +++ b/tests/test-highlight Wed Jan 06 18:03:33 2010 +0000 @@ -119,7 +119,7 @@ hg init eucjp cd eucjp -printf '\265\376\n' >> eucjp.txt # Japanese kanji "Kyo" +python -c 'print("\265\376")' >> eucjp.txt # Japanese kanji "Kyo" hg ci -Ama diff -r a19d2993385d -r b190a8125b43 tests/test-patchbomb --- a/tests/test-patchbomb Fri Jan 15 21:08:04 2010 +0100 +++ b/tests/test-patchbomb Wed Jan 06 18:03:33 2010 +0000 @@ -170,7 +170,7 @@ -c bar -s test -r 0:1 | 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" \