mkdir -p tmp && cd tmp &&
test_when_finished "cd .. && rm -rf tmp && LC_ALL=C" &&
- export LC_ALL=en_US.UTF-8
-
+ LC_ALL=en_US.UTF-8
+ export LC_ALL
(
bzr init bzrrepo &&
cd bzrrepo &&
- echo test >> "��éíóú" &&
- bzr add "��éíóú" &&
- echo test >> "��ø∫∆" &&
- bzr add "��ø∫∆" &&
- bzr commit -m utf-8 &&
- echo test >> "��éíóú" &&
- bzr commit -m utf-8 &&
- bzr rm "��ø∫∆" &&
- bzr mv "��éíóú" "åß∂" &&
- bzr commit -m utf-8
+ echo test >> "��rø" &&
+ bzr add "��rø" &&
+ echo test >> "��~?" &&
+ bzr add "��~?" &&
+ bzr commit -m add-utf-8 &&
+ echo test >> "��rø" &&
+ bzr commit -m test-utf-8 &&
+ bzr rm "��~?" &&
+ bzr mv "��rø" "ø~?" &&
+ bzr commit -m bzr-mv-utf-8
) &&
(
git clone "bzr::$PWD/bzrrepo" gitrepo &&
cd gitrepo &&
- git ls-files > ../actual
+ git -c core.quotepath=false ls-files > ../actual
) &&
-
- echo "\"\\303\\245\\303\\237\\342\\210\\202\"" > expected &&
+ echo "ø~?" > expected &&
test_cmp expected actual
'
mkdir -p tmp && cd tmp &&
test_when_finished "cd .. && rm -rf tmp && LC_ALL=C" &&
- export LC_ALL=en_US.UTF-8
+ LC_ALL=en_US.UTF-8
+ export LC_ALL
(
bzr init bzrrepo &&
git clone "bzr::$PWD/bzrrepo" gitrepo &&
cd gitrepo &&
- echo test >> "��éíóú" &&
- git add "��éíóú" &&
+ echo test >> "��rø" &&
+ git add "��rø" &&
git commit -m utf-8 &&
git push
) &&
(cd bzrrepo && bzr ls > ../actual) &&
- echo -e "content\náéíóú" > expected &&
+ printf "content\nærø\n" > expected &&
test_cmp expected actual
'