File tree Expand file tree Collapse file tree 1 file changed +17
-13
lines changed Expand file tree Collapse file tree 1 file changed +17
-13
lines changed Original file line number Diff line number Diff line change 60
60
'
61
61
done
62
62
63
- test_expect_success ' ISO-8859-1 should match UTF-8 in svn' '
64
- (
65
- cd ISO-8859-1 &&
66
- compare_svn_head_with "$TEST_DIRECTORY"/t3900/1-UTF-8.txt
67
- )
68
- '
69
-
70
- for H in EUCJP ISO-2022-JP
71
- do
72
- test_expect_success ' $H should match UTF-8 in svn' '
63
+ if locale -a | grep -q en_US.utf8; then
64
+ test_expect_success ' ISO-8859-1 should match UTF-8 in svn' '
73
65
(
74
- cd $H &&
75
- compare_svn_head_with "$TEST_DIRECTORY"/t3900/2 -UTF-8.txt
66
+ cd ISO-8859-1 &&
67
+ compare_svn_head_with "$TEST_DIRECTORY"/t3900/1 -UTF-8.txt
76
68
)
77
69
'
78
- done
70
+
71
+ for H in EUCJP ISO-2022-JP
72
+ do
73
+ test_expect_success ' $H should match UTF-8 in svn' '
74
+ (
75
+ cd $H &&
76
+ compare_svn_head_with "$TEST_DIRECTORY"/t3900/2-UTF-8.txt
77
+ )
78
+ '
79
+ done
80
+ else
81
+ say " UTF-8 locale not available, test skipped"
82
+ fi
79
83
80
84
test_done
You can’t perform that action at this time.
0 commit comments