##// END OF EJS Templates
Use python instead of shell printf with \x sequences for test-encoding....
Thomas Arendsen Hein -
r3789:734b1d6b default
parent child Browse files
Show More
@@ -7,9 +7,11 b' cd t'
7 7 hg unbundle $TESTDIR/legacy-encoding.hg
8 8 hg co
9 9
10 printf "latin-1 e' encoded: \xe9" > latin-1
11 printf "utf-8 e' encoded: \xc3\xa9" > utf-8
12 printf "\xe9" > latin-1-tag
10 python << EOF
11 f = file('latin-1', 'w'); f.write("latin-1 e' encoded: \xe9"); f.close()
12 f = file('utf-8', 'w'); f.write("utf-8 e' encoded: \xc3\xa9"); f.close()
13 f = file('latin-1-tag', 'w'); f.write("\xe9"); f.close()
14 EOF
13 15
14 16 echo % should fail with encoding error
15 17 echo "plain old ascii" > a
General Comments 0
You need to be logged in to leave comments. Login now