File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,22 @@ compare_git_head_with () {
14
14
test_cmp current " $1 "
15
15
}
16
16
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
28
+
17
29
compare_svn_head_with () {
18
30
# extract just the log message and strip out committer info.
19
31
# don't use --limit here since svn 1.1.x doesn't have it,
20
- LC_ALL=en_US.UTF-8 svn log ` git svn info --url` | perl -w -e '
32
+ LC_ALL=" $a_utf8_locale " svn log ` git svn info --url` | perl -w -e '
21
33
use bytes;
22
34
$/ = ("-"x72) . "\n";
23
35
my @x = <STDIN>;
69
81
'
70
82
done
71
83
72
- if locale -a | grep -q en_US.utf8; then
73
- test_set_prereq UTF8
74
- else
75
- say " UTF-8 locale not available, test skipped"
76
- fi
77
-
78
84
test_expect_success UTF8 ' ISO-8859-1 should match UTF-8 in svn' '
79
85
(
80
86
cd ISO8859-1 &&
You can’t perform that action at this time.
0 commit comments