Mercurial > hg > mercurial-crew-with-dirclash
comparison tests/test-encoding @ 3839:3820385fb113
Fixes test-encoding for python2.3 and minor cleanups:
- Use koi8-r instead of euc-jp, as the later isn't available in python2.3.
- Add unicode representation for latin1 e', too.
- Use date "1000000 0" like in other tests (though not strictly needed
because we no longer use %c as default datestr format).
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Sat, 09 Dec 2006 11:16:27 +0100 |
parents | d1ce5461beed |
children | abaa2cd00d2b |
comparison
equal
deleted
inserted
replaced
3838:dec4eba7ccad | 3839:3820385fb113 |
---|---|
14 EOF | 14 EOF |
15 | 15 |
16 echo % should fail with encoding error | 16 echo % should fail with encoding error |
17 echo "plain old ascii" > a | 17 echo "plain old ascii" > a |
18 hg st | 18 hg st |
19 HGENCODING=ascii hg ci -l latin-1 -d "0 0" | 19 HGENCODING=ascii hg ci -l latin-1 -d "1000000 0" |
20 | 20 |
21 echo % these should work | 21 echo % these should work |
22 echo "latin-1" > a | 22 echo "latin-1" > a |
23 HGENCODING=latin-1 hg ci -l latin-1 -d "0 0" | 23 HGENCODING=latin-1 hg ci -l latin-1 -d "1000000 0" |
24 echo "utf-8" > a | 24 echo "utf-8" > a |
25 HGENCODING=utf-8 hg ci -l utf-8 -d "0 0" | 25 HGENCODING=utf-8 hg ci -l utf-8 -d "1000000 0" |
26 | 26 |
27 HGENCODING=latin-1 hg tag -d "0 0" `cat latin-1-tag` | 27 HGENCODING=latin-1 hg tag -d "1000000 0" `cat latin-1-tag` |
28 cp latin-1-tag .hg/branch | 28 cp latin-1-tag .hg/branch |
29 HGENCODING=latin-1 hg ci -d "0 0" -m 'latin1 branch' | 29 HGENCODING=latin-1 hg ci -d "1000000 0" -m 'latin1 branch' |
30 rm .hg/branch | 30 rm .hg/branch |
31 | 31 |
32 echo % ascii | 32 echo % ascii |
33 hg --encoding ascii log | 33 hg --encoding ascii log |
34 echo % latin-1 | 34 echo % latin-1 |
47 HGENCODING=latin-1 hg branches | 47 HGENCODING=latin-1 hg branches |
48 echo % utf-8 | 48 echo % utf-8 |
49 HGENCODING=utf-8 hg branches | 49 HGENCODING=utf-8 hg branches |
50 | 50 |
51 echo '[ui]' >> .hg/hgrc | 51 echo '[ui]' >> .hg/hgrc |
52 echo 'fallbackencoding = euc-jp' >> .hg/hgrc | 52 echo 'fallbackencoding = koi8-r' >> .hg/hgrc |
53 echo % utf-8 | 53 echo % utf-8 |
54 HGENCODING=utf-8 hg log | 54 HGENCODING=utf-8 hg log |