t4201: use ISO8859-1 rather than ISO-8859-1
Some ancient platforms do not have an extensive list of alternate names for character encodings. For example, Solaris 7 and IRIX 6.5 do not know that ISO-8859-1 is the same as ISO8859-1. Modern platforms do know this, so use the older name. Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Brandon Casey committed
Dec 3, 2009 at 11:52 UTC
3994e8a98dc7bbf67e61d23c8125f44383499a1f
1 file changed
+2
-2
t/t4201-shortlog.sh
+2
-2
@@ -53,7 +53,7 @@ GIT_DIR=non-existing git shortlog -w < log > out
53
test_expect_success 'shortlog from non-git directory' 'test_cmp expect out'
54
55
iconvfromutf8toiso88591() {
56
- printf "%s" "$*" | iconv -f UTF-8 -t ISO-8859-1
56
+ printf "%s" "$*" | iconv -f UTF-8 -t ISO8859-1
57
}
58
59
DSCHO="Jöhännës \"Dschö\" Schindëlin"
@@ -72,7 +72,7 @@ test_expect_success 'shortlog encoding' '
72
git config --unset i18n.commitencoding &&
73
echo 2 > a1 &&
74
git commit --quiet -m "$MSG1" --author="$DSCHOE" a1 &&
75
- git config i18n.commitencoding "ISO-8859-1" &&
75
+ git config i18n.commitencoding "ISO8859-1" &&
76
echo 3 > a1 &&
77
git commit --quiet -m "$(iconvfromutf8toiso88591 "$MSG2")" \
78
--author="$(iconvfromutf8toiso88591 "$DSCHOE")" a1 &&