{"thread":{"id":"7455","subject":"[PATCH] t/t6006: add tests for a slightly more complex commit message","startedAt":"2007-03-28T21:08:36Z","lastAt":"2007-03-28T21:08:36Z","messageCount":1,"participants":["Jeff King"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"38266","messageId":"20070328210836.GA7898@coredump.intra.peff.net","threadId":"7455","inReplyTo":null,"subject":"[PATCH] t/t6006: add tests for a slightly more complex commit message","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2007-03-28T21:08:36Z","receivedAt":"2007-03-28T21:08:36Z","isPatch":true,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"This test does not pass; there is a bug in the printing of\nthe 'encoding' parameter.\n\nSigned-off-by: Jeff King <peff@peff.net>\n---\n t/t6006-rev-list-format.sh |   42 ++++++++++++++++++++++++++++++++++++++++++\n 1 files changed, 42 insertions(+), 0 deletions(-)\n\ndiff --git a/t/t6006-rev-list-format.sh b/t/t6006-rev-list-format.sh\nindex ce9c7dc..aab17fa 100755\n--- a/t/t6006-rev-list-format.sh\n+++ b/t/t6006-rev-list-format.sh\n@@ -105,4 +105,46 @@ commit 86c75cfd708a0e5868dc876ed5b8bb66c80b4873\n \u001b[31mfoo\u001b[32mbar\u001b[34mbaz\u001b[mxyzzy\n EOF\n \n+cat >commit-msg <<'EOF'\n+Test printing of complex bodies\n+\n+This commit message is much longer than the others,\n+and it will be encoded in iso8859-1. We should therefore\n+include an iso8859 character: ¡bueno!\n+EOF\n+test_expect_success 'setup complex body' '\n+git-config i18n.commitencoding iso8859-1 &&\n+  echo change2 >foo && git-commit -a -F commit-msg\n+'\n+\n+test_format complex-encoding %e <<'EOF'\n+commit f58db70b055c5718631e5c61528b28b12090cdea\n+iso8859-1\n+commit 131a310eb913d107dd3c09a65d1651175898735d\n+<unknown>\n+commit 86c75cfd708a0e5868dc876ed5b8bb66c80b4873\n+<unknown>\n+EOF\n+\n+test_format complex-subject %s <<'EOF'\n+commit f58db70b055c5718631e5c61528b28b12090cdea\n+Test printing of complex bodies\n+commit 131a310eb913d107dd3c09a65d1651175898735d\n+changed foo\n+commit 86c75cfd708a0e5868dc876ed5b8bb66c80b4873\n+added foo\n+EOF\n+\n+test_format complex-body %b <<'EOF'\n+commit f58db70b055c5718631e5c61528b28b12090cdea\n+This commit message is much longer than the others,\n+and it will be encoded in iso8859-1. We should therefore\n+include an iso8859 character: ¡bueno!\n+\n+commit 131a310eb913d107dd3c09a65d1651175898735d\n+<unknown>\n+commit 86c75cfd708a0e5868dc876ed5b8bb66c80b4873\n+<unknown>\n+EOF\n+\n test_done\n-- \n1.5.1.rc2.636.gff57\n"}]}