Commits

Anonymous committed 1a91ebf

t9200: Re-code non-ascii path test in UTF-8

For the purpose of this test we do not really care if the paths
are in latin-1, but people on Cygwin seem to be having problem
on foreign-looking pathnames that do not play well with their
locale.

Let's try to re-code them in UTF-8 and see who screams,
thanks, or reports no-improvements.

Signed-off-by: Junio C Hamano <junkio@cox.net>

Comments (0)

Files changed (1)

t/t9200-git-cvsexportcommit.sh

       test "$(echo $(sort "G g/CVS/Entries"|cut -d/ -f2,3,5))" = "with spaces.png/1.2/-kb with spaces.txt/1.2/"
       )'
 
-# This test contains ISO-8859-1 characters
+# This test contains UTF-8 characters
 test_expect_success \
      'File with non-ascii file name' \
-     'mkdir -p Ĺ/goo/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z/ĺ/ä/ö &&
-      echo Foo >Ĺ/goo/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z/ĺ/ä/ö/gĺrdetsĺgĺrdet.txt &&
-      git add Ĺ/goo/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z/ĺ/ä/ö/gĺrdetsĺgĺrdet.txt &&
-      cp ../test9200a.png Ĺ/goo/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z/ĺ/ä/ö/gĺrdetsĺgĺrdet.png &&
-      git add Ĺ/goo/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z/ĺ/ä/ö/gĺrdetsĺgĺrdet.png &&
-      git commit -a -m "Gĺr det sĺ gĺr det" && \
+     'mkdir -p Ă
+      echo Foo >Ă
+      git add Ă
+      cp ../test9200a.png Ă
+      git add Ă
+      git commit -a -m "GĂĽr det sĂĽ gĂĽr det" && \
       id=$(git rev-list --max-count=1 HEAD) &&
       (cd "$CVSWORK" &&
       git-cvsexportcommit -v -c $id &&
-      test "$(echo $(sort Ĺ/goo/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z/ĺ/ä/ö/CVS/Entries|cut -d/ -f2,3,5))" = "gĺrdetsĺgĺrdet.png/1.1/-kb gĺrdetsĺgĺrdet.txt/1.1/"
+      test "$(echo $(sort Ă
       )'
 
 test_expect_success \