@@ -12,11 +12,11 @@ test_tick
12
12
# String "added" in German
13
13
# (translated with Google Translate),
14
14
# encoded in UTF-8, used as a commit log message below.
15
- added=$( printf " added (hinzugef\303\274gt) foo" )
16
- added_iso88591=$( echo " $ added" | iconv -f utf-8 -t iso8859-1)
15
+ added=$( printf ' added (hinzugef\303\274gt) foo' | iconv -t utf-8 )
16
+ added_iso88591=$( printf ' added (hinzugef\303\274gt) foo ' | iconv -f utf-8 -t iso8859-1)
17
17
# same but "changed"
18
- changed=$( printf " changed (ge\303\244ndert) foo" )
19
- changed_iso88591=$( echo " $ changed" | iconv -f utf-8 -t iso8859-1)
18
+ changed=$( printf " changed (ge\303\244ndert) foo" | iconv -t utf-8 )
19
+ changed_iso88591=$( printf ' changed (ge\303\244ndert) foo ' | iconv -f utf-8 -t iso8859-1)
20
20
21
21
test_expect_success ' setup' '
22
22
: >foo &&
@@ -206,13 +206,12 @@ test_expect_success '%C(auto) respects --color=auto (stdout not tty)' '
206
206
)
207
207
'
208
208
209
- iconv -f utf-8 -t iso8859-1 > commit-msg << EOF
210
- Test printing of complex bodies
209
+ printf ' Test printing of complex bodies
211
210
212
211
This commit message is much longer than the others,
213
212
and it will be encoded in iso8859-1. We should therefore
214
- include an iso8859 character: ¡bueno !
215
- EOF
213
+ include an iso8859 character: \xc2\xa1bueno !
214
+ ' | iconv -f utf-8 -t iso8859-1 > commit-msg
216
215
217
216
test_expect_success ' setup complex body' '
218
217
git config i18n.commitencoding iso8859-1 &&
0 commit comments