@@ -4,7 +4,7 @@ test_description='git blame encoding conversion'
4
4
. ./test-lib.sh
5
5
6
6
. " $TEST_DIRECTORY " /t8005/utf8.txt
7
- . " $TEST_DIRECTORY " /t8005/iso8859-5 .txt
7
+ . " $TEST_DIRECTORY " /t8005/euc-japan .txt
8
8
. " $TEST_DIRECTORY " /t8005/sjis.txt
9
9
10
10
test_expect_success ' setup the repository' '
@@ -13,10 +13,10 @@ test_expect_success 'setup the repository' '
13
13
git add file &&
14
14
git commit --author "$UTF8_NAME <utf8@localhost>" -m "$UTF8_MSG" &&
15
15
16
- echo "ISO-8859-5 LINE" >> file &&
16
+ echo "EUC-JAPAN LINE" >> file &&
17
17
git add file &&
18
- git config i18n.commitencoding ISO8859-5 &&
19
- git commit --author "$ISO8859_5_NAME <iso8859-5 @localhost>" -m "$ISO8859_5_MSG " &&
18
+ git config i18n.commitencoding eucJP &&
19
+ git commit --author "$EUC_JAPAN_NAME <euc-japan @localhost>" -m "$EUC_JAPAN_MSG " &&
20
20
21
21
echo "SJIS LINE" >> file &&
22
22
git add file &&
@@ -41,17 +41,17 @@ test_expect_success \
41
41
'
42
42
43
43
cat > expected << EOF
44
- author $ISO8859_5_NAME
45
- summary $ISO8859_5_MSG
46
- author $ISO8859_5_NAME
47
- summary $ISO8859_5_MSG
48
- author $ISO8859_5_NAME
49
- summary $ISO8859_5_MSG
44
+ author $EUC_JAPAN_NAME
45
+ summary $EUC_JAPAN_MSG
46
+ author $EUC_JAPAN_NAME
47
+ summary $EUC_JAPAN_MSG
48
+ author $EUC_JAPAN_NAME
49
+ summary $EUC_JAPAN_MSG
50
50
EOF
51
51
52
52
test_expect_success \
53
53
' blame respects i18n.logoutputencoding' '
54
- git config i18n.logoutputencoding ISO8859-5 &&
54
+ git config i18n.logoutputencoding eucJP &&
55
55
git blame --incremental file | \
56
56
egrep "^(author|summary) " > actual &&
57
57
test_cmp actual expected
@@ -76,8 +76,8 @@ test_expect_success \
76
76
cat > expected << EOF
77
77
author $SJIS_NAME
78
78
summary $SJIS_MSG
79
- author $ISO8859_5_NAME
80
- summary $ISO8859_5_MSG
79
+ author $EUC_JAPAN_NAME
80
+ summary $EUC_JAPAN_MSG
81
81
author $UTF8_NAME
82
82
summary $UTF8_MSG
83
83
EOF
0 commit comments