git-svn: add UTF-8 message test
Signed-off-by: Eric Wong <normalperson@yhbt.net>
Eric Wong committed
Jun 12, 2006 at 05:57 UTC
7a97de4e19757b5576f32ce67d90cb792dbb893b
1 file changed
+13
contrib/git-svn/t/t0000-contrib-git-svn.sh
+13
@@ -4,6 +4,7 @@
4
#
5
6
test_description='git-svn tests'
7
+GIT_SVN_LC_ALL=$LC_ALL
8
. ./lib-git-svn.sh
9
10
mkdir import
@@ -163,6 +164,18 @@ test_expect_success "$name" \
164
diff -u help $SVN_TREE/exec-2.sh"
165
166
167
+if test -n "$GIT_SVN_LC_ALL" && echo $GIT_SVN_LC_ALL | grep -q '\.UTF-8$'
168
+then
169
+ name="commit with UTF-8 message: locale: $GIT_SVN_LC_ALL"
170
+ echo '# hello' >> exec-2.sh
171
+ git update-index exec-2.sh
172
+ git commit -m 'éï∏'
173
+ export LC_ALL="$GIT_SVN_LC_ALL"
174
+ test_expect_success "$name" "git-svn commit HEAD"
175
+ unset LC_ALL
176
+else
177
+ echo "UTF-8 locale not set, test skipped ($GIT_SVN_LC_ALL)"
178
+fi
179
180
name='test fetch functionality (svn => git) with alternate GIT_SVN_ID'
181
GIT_SVN_ID=alt