Mercurial > public > mercurial-scm > hg-stable
diff 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 |
line wrap: on
line diff
--- a/tests/test-encoding Sat Dec 09 09:30:29 2006 +0100 +++ b/tests/test-encoding Sat Dec 09 11:16:27 2006 +0100 @@ -16,17 +16,17 @@ echo % should fail with encoding error echo "plain old ascii" > a hg st -HGENCODING=ascii hg ci -l latin-1 -d "0 0" +HGENCODING=ascii hg ci -l latin-1 -d "1000000 0" echo % these should work echo "latin-1" > a -HGENCODING=latin-1 hg ci -l latin-1 -d "0 0" +HGENCODING=latin-1 hg ci -l latin-1 -d "1000000 0" echo "utf-8" > a -HGENCODING=utf-8 hg ci -l utf-8 -d "0 0" +HGENCODING=utf-8 hg ci -l utf-8 -d "1000000 0" -HGENCODING=latin-1 hg tag -d "0 0" `cat latin-1-tag` +HGENCODING=latin-1 hg tag -d "1000000 0" `cat latin-1-tag` cp latin-1-tag .hg/branch -HGENCODING=latin-1 hg ci -d "0 0" -m 'latin1 branch' +HGENCODING=latin-1 hg ci -d "1000000 0" -m 'latin1 branch' rm .hg/branch echo % ascii @@ -49,6 +49,6 @@ HGENCODING=utf-8 hg branches echo '[ui]' >> .hg/hgrc -echo 'fallbackencoding = euc-jp' >> .hg/hgrc +echo 'fallbackencoding = koi8-r' >> .hg/hgrc echo % utf-8 HGENCODING=utf-8 hg log