@@ -4,7 +4,7 @@ test_description='git blame encoding conversion'
44. ./test-lib.sh
55
66. " $TEST_DIRECTORY " /t8005/utf8.txt
7- . " $TEST_DIRECTORY " /t8005/iso8859-5 .txt
7+ . " $TEST_DIRECTORY " /t8005/euc-japan .txt
88. " $TEST_DIRECTORY " /t8005/sjis.txt
99
1010test_expect_success ' setup the repository' '
@@ -13,10 +13,10 @@ test_expect_success 'setup the repository' '
1313 git add file &&
1414 git commit --author "$UTF8_NAME <utf8@localhost>" -m "$UTF8_MSG" &&
1515
16- echo "ISO-8859-5 LINE" >> file &&
16+ echo "EUC-JAPAN LINE" >> file &&
1717 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 " &&
2020
2121 echo "SJIS LINE" >> file &&
2222 git add file &&
@@ -41,17 +41,17 @@ test_expect_success \
4141'
4242
4343cat > 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
5050EOF
5151
5252test_expect_success \
5353 ' blame respects i18n.logoutputencoding' '
54- git config i18n.logoutputencoding ISO8859-5 &&
54+ git config i18n.logoutputencoding eucJP &&
5555 git blame --incremental file | \
5656 egrep "^(author|summary) " > actual &&
5757 test_cmp actual expected
@@ -76,8 +76,8 @@ test_expect_success \
7676cat > expected << EOF
7777author $SJIS_NAME
7878summary $SJIS_MSG
79- author $ISO8859_5_NAME
80- summary $ISO8859_5_MSG
79+ author $EUC_JAPAN_NAME
80+ summary $EUC_JAPAN_MSG
8181author $UTF8_NAME
8282summary $UTF8_MSG
8383EOF
0 commit comments