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>
Brandon Casey committed
May 22, 2009 at 18:47 UTC
bdb0a7e4e429860ce9dfe43401dda337dbbd0baa
1 file changed
+3
-3
t/t8005-blame-i18n.sh
+3
-3
@@ -20,7 +20,7 @@ test_expect_success 'setup the repository' '
20
21
echo "SJIS LINE" >> file &&
22
git add file &&
23
- git config i18n.commitencoding shift-jis &&
23
+ git config i18n.commitencoding SJIS &&
24
git commit --author "$SJIS_NAME <sjis@localhost>" -m "$SJIS_MSG"
25
'
26
@@ -67,8 +67,8 @@ summary $UTF8_MSG
67
EOF
68
69
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 | \
72
egrep "^(author|summary) " > actual &&
73
test_cmp actual expected
74
'