Skip to content

Commit 3df0d26

Browse files
author
Eric Wong
committed
git-svn: hoist out utf8 prep from t9129 to lib-git-svn
We will be reusing this in t9115. Suggested-by: Kazutoshi Satoda <k_satoda@f2.dion.ne.jp> Signed-off-by: Eric Wong <normalperson@yhbt.net>
1 parent 0233b80 commit 3df0d26

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

t/lib-git-svn.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,3 +186,15 @@ start_svnserve () {
186186
--listen-host 127.0.0.1 &
187187
}
188188

189+
prepare_a_utf8_locale () {
190+
a_utf8_locale=$(locale -a | sed -n '/\.[uU][tT][fF]-*8$/{
191+
p
192+
q
193+
}')
194+
if test -n "$a_utf8_locale"
195+
then
196+
test_set_prereq UTF8
197+
else
198+
say "# UTF-8 locale not available, some tests are skipped"
199+
fi
200+
}

t/t9129-git-svn-i18n-commitencoding.sh

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,7 @@ compare_git_head_with () {
1414
test_cmp current "$1"
1515
}
1616

17-
a_utf8_locale=$(locale -a | sed -n '/\.[uU][tT][fF]-*8$/{
18-
p
19-
q
20-
}')
21-
22-
if test -n "$a_utf8_locale"
23-
then
24-
test_set_prereq UTF8
25-
else
26-
say "# UTF-8 locale not available, some tests are skipped"
27-
fi
17+
prepare_a_utf8_locale
2818

2919
compare_svn_head_with () {
3020
# extract just the log message and strip out committer info.

0 commit comments

Comments
 (0)