diff tests/test-highlight @ 10253:b190a8125b43 stable

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.
author Jim Hague <jim.hague@acm.org>
date Wed, 06 Jan 2010 18:03:33 +0000
parents b42b03308ae9
children a9c0d6060827
line wrap: on
line diff
--- 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