# HG changeset patch # User Thomas Arendsen Hein # Date 1165314217 -3600 # Node ID 734b1d6ba3dcb1044232a99631025a42e9bbbf03 # Parent 18c93649f56380df50810a02fc91fd8761df99ef Use python instead of shell printf with \x sequences for test-encoding. Needed e.g. to be compatible with Solaris. diff --git a/tests/test-encoding b/tests/test-encoding --- a/tests/test-encoding +++ b/tests/test-encoding @@ -7,9 +7,11 @@ cd t hg unbundle $TESTDIR/legacy-encoding.hg hg co -printf "latin-1 e' encoded: \xe9" > latin-1 -printf "utf-8 e' encoded: \xc3\xa9" > utf-8 -printf "\xe9" > latin-1-tag +python << EOF +f = file('latin-1', 'w'); f.write("latin-1 e' encoded: \xe9"); f.close() +f = file('utf-8', 'w'); f.write("utf-8 e' encoded: \xc3\xa9"); f.close() +f = file('latin-1-tag', 'w'); f.write("\xe9"); f.close() +EOF echo % should fail with encoding error echo "plain old ascii" > a