Re: [PATCH v9 4/5] t6006: add two more tests for the case i18n.commitEncoding is not set
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 5, 2013, 07:04 UTC
- Message-ID
- <7vk3l5a3nh.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <d1e6681bea4a69d4774b09e4cb776f4cd6e6dcc9.1372939482.git.Alex.Crezoff@gmail.com>
Alexey Shumkin <alex.crezoff@gmail.com> writes:
Show 5 quoted lines
> +test_format complex-body %b <<EOF > +commit $head3 > +This commit message is much longer than the others, > +and it will be encoded in iso8859-1. We should therefore > +include an iso8859 character: ¡bueno!
This is not such a good idea, as the resulting file will be in mixed encoding (it already has a line with non-ascii that is in UTF-8), and many editors would not like such a file.
Perhaps we should update test_format so that we can feed a quoted input, e.g.
+include an iso8859-1 character: <A1>bueno!
or something?
Show 22 quoted lines
> +commit $head2 > +commit $head1 > +EOF > + > +# Git uses i18n.commitEncoding if no i18n.logOutputEncoding set > +# so unset i18n.commitEncoding to test encoding conversion > +git config --unset i18n.commitEncoding > + > +test_format complex-subject-commitencoding-unset %s <<EOF > +commit $head3 > +Test printing of complex bodies > +commit $head2 > $changed > commit $head1 > $added > EOF > > -test_format complex-body %b <<EOF > +test_format complex-body-commitencoding-unset %b <<EOF > commit $head3 > This commit message is much longer than the others, > and it will be encoded in iso8859-1. We should therefore