>From 7b827f2d65aaa859030ba5b08055020f2bda1f0f Mon Sep 17 00:00:00 2001 From: Kazutoshi SATODA Date: Wed, 17 Feb 2016 00:29:24 +0900 Subject: [PATCH] Add LC_ALL=C.UTF-8 in t9115-git-svn-dcommit-funky-renames.sh This makes the test 11-12 pass on Cygwin. --- t/t9115-git-svn-dcommit-funky-renames.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/t/t9115-git-svn-dcommit-funky-renames.sh b/t/t9115-git-svn-dcommit-funky-renames.sh index 9828f05..59d086b 100755 --- a/t/t9115-git-svn-dcommit-funky-renames.sh +++ b/t/t9115-git-svn-dcommit-funky-renames.sh @@ -84,7 +84,16 @@ test_expect_success 'git svn rebase works inside a fresh-cloned repository' ' test -e test-rebase )' +# Without this, LC_ALL=C as set in test-lib.sh, and Cygwin converts +# non-ASCII characters in filenames unexpectedly, and causes errors. +# https://cygwin.com/cygwin-ug-net/using-specialnames.html#pathnames-specialchars +# > Some characters are disallowed in filenames on Windows filesystems. ... +# ... +# > ... All of the above characters, except for the backslash, are converted +# > to special UNICODE characters in the range 0xf000 to 0xf0ff (the +# > "Private use area") when creating or accessing files. test_expect_success 'svn.pathnameencoding=cp932 new file on dcommit' ' + export LC_ALL=C.UTF-8 && neq=$(printf "\201\202") && git config svn.pathnameencoding cp932 && echo neq >"$neq" && @@ -93,7 +102,9 @@ test_expect_success 'svn.pathnameencoding=cp932 new file on dcommit' ' git svn dcommit ' +# See the comment on the above test for setting of LC_ALL. test_expect_success 'svn.pathnameencoding=cp932 rename on dcommit' ' + export LC_ALL=C.UTF-8 && inf=$(printf "\201\207") && git config svn.pathnameencoding cp932 && echo inf >"$inf" && -- 2.7.0