Skip to content

Commit bdb0a7e

Browse files
drafnelgitster
authored andcommitted
t8005: use more portable character encoding names
Some platforms do not have an extensive list of alternate names for character encodings. Solaris 7 does not know about shift-jis, but does know SJIS. It also does not know that utf-8 and UTF-8 refer to the same encoding. With the above in mind, the following conversions were performed: utf-8 --> UTF-8 shift-jis --> SJIS Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent bf1db7d commit bdb0a7e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

t/t8005-blame-i18n.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ test_expect_success 'setup the repository' '
2020
2121
echo "SJIS LINE" >> file &&
2222
git add file &&
23-
git config i18n.commitencoding shift-jis &&
23+
git config i18n.commitencoding SJIS &&
2424
git commit --author "$SJIS_NAME <sjis@localhost>" -m "$SJIS_MSG"
2525
'
2626

@@ -67,8 +67,8 @@ summary $UTF8_MSG
6767
EOF
6868

6969
test_expect_success \
70-
'blame respects --encoding=utf-8' '
71-
git blame --incremental --encoding=utf-8 file | \
70+
'blame respects --encoding=UTF-8' '
71+
git blame --incremental --encoding=UTF-8 file | \
7272
egrep "^(author|summary) " > actual &&
7373
test_cmp actual expected
7474
'

0 commit comments

Comments
 (0)