From: Junio C Hamano <gitster@pobox.com>
To: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com>
Cc: git@vger.kernel.org, Jonathan Nieder <jrnieder@gmail.com>
Subject: Re: What's cooking in git.git (Aug 2018, #02; Mon, 6)
Date: Wed, 08 Aug 2018 15:41:57 -0700 [thread overview]
Message-ID: <xmqqftzoeb0q.fsf@gitster-ct.c.googlers.com> (raw)
In-Reply-To: <xmqqa7pymdks.fsf@gitster-ct.c.googlers.com> (Junio C. Hamano's message of "Tue, 07 Aug 2018 07:54:59 -0700")
Junio C Hamano <gitster@pobox.com> writes:
> Hmph, it came from this message (most headers omitted)
>
> To: =?iso-8859-1?Q?=C6var_Arnfj=F6r=F0?= Bjarmason <avarab@gmail.com>
> Message-ID: <20180804085247.GE55869@aiede.svl.corp.google.com>
> Content-Type: text/plain; charset=iso-8859-1
> Content-Disposition: inline
> Content-Transfer-Encoding: 8bit
>
> Subject: doc hash-function-transition: pick SHA-256 as NewHash
>
> ...
>
> Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
>
> and the body seems to be correct iso-8859-1. "od -cx" tells me that
> the file stores 0xf0 for that D looking thing, for example. Could it
> be mailinfo that screws up, I wonder. A quick check with "git mailinfo"
> does not give me anything suspicous---the info contents emitted to
> its standard output is correctly converted to UTF-8. Puzzled...
>
> I read from public-inbox/git over nntp, if that matters.
Just to close the loop, this turned out to be caused by my use of
Gnus/Emacs.
You can stop reading if you are not interested in reading and applying
patches from inside Gnus.
I am used to type '|' (gnus-summary-pipe-output) to pipe the current
article into "git am -s[c3]", and it works fine when the payload is
UTF-8. But the command decodes, and strips certain e-mail headers,
before feeding it to the command.
While the payload is converted to UTF-8 (presumably because that is
what I use by default), "Content-type" is *not* among the e-mail
headers that are stripped, so "am" ends up seeing UTF-8 bytestream
that (still) claims to be "iso-8859-1" when processing the above
message.
I need to get used to typing M-i r | (that is, to use the 'r'
"symbolic prefix") to force the message piped as-is to the command.
Again, thanks for noticing and giving me a chance to correct the
result before it got too late.
prev parent reply other threads:[~2018-08-08 22:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-06 22:35 What's cooking in git.git (Aug 2018, #02; Mon, 6) Junio C Hamano
2018-08-07 3:47 ` Eric Sunshine
2018-08-07 6:30 ` Eric Sunshine
2018-08-07 6:21 ` Ævar Arnfjörð Bjarmason
2018-08-07 14:36 ` Junio C Hamano
2018-08-07 14:54 ` Junio C Hamano
2018-08-08 22:41 ` Junio C Hamano [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqftzoeb0q.fsf@gitster-ct.c.googlers.com \
--to=gitster@pobox.com \
--cc=avarab@gmail.com \
--cc=git@vger.kernel.org \
--cc=jrnieder@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).