@matheusbsbs / matheus-bagliano / commits / 952182b569
Fork 0

t9100-git-svn-basic.sh: Fix determination of utf-8 locale

When setting the GIT_SVN_LC_ALL variable, default to the $LANG environment variable, when the $LC_ALL override is not set. Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Ramsay Jones committed Jul 8, 2008 at 23:59 UTC 952182b5691452f2b4fb49513c74e856d561f9d2
1 file changed +4 -4
t/t9100-git-svn-basic.sh
+4 -4
@@ -4,9 +4,9 @@
4 #
5
6 test_description='git-svn basic tests'
7 -GIT_SVN_LC_ALL=$LC_ALL
7 +GIT_SVN_LC_ALL=${LC_ALL:-$LANG}
8
9 -case "$LC_ALL" in
9 +case "$GIT_SVN_LC_ALL" in
10 *.UTF-8)
11 have_utf8=t
12 ;;
@@ -17,7 +17,7 @@ esac
17
18 . ./lib-git-svn.sh
19
20 -echo 'define NO_SVN_TESTS to skip git-svn tests'
20 +say 'define NO_SVN_TESTS to skip git-svn tests'
21
22 test_expect_success \
23 'initialize git-svn' '
@@ -183,7 +183,7 @@ then
183 git-svn set-tree HEAD"
184 unset LC_ALL
185 else
186 - echo "UTF-8 locale not set, test skipped ($GIT_SVN_LC_ALL)"
186 + say "UTF-8 locale not set, test skipped ($GIT_SVN_LC_ALL)"
187 fi
188
189 name='test fetch functionality (svn => git) with alternate GIT_SVN_ID'