Make format-patch produce UTF-8 `From:' header (was Re: git am should recognize >From)

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Make format-patch produce UTF-8 `From:' header (was Re: git am should recognize >From)

From: Štěpán Němec <hidden>
Date: 2016-06-15 22:49:34

Jonathan Nieder [off-list ref] writes:
Maybe format-patch could provide another mode to produce patches that
do not include unnecessary headers (in particular, leaving out the
difficult "From " line and using UTF-8 instead of quoted-printable for
the "From: " line).
FWIW, the quoted-printable `From:' encoding has always annoyed me -- I
replace it manually with my name & address in UTF-8 every time I send
out a patch. What is the reason format-patch does that (and if there is
a reason not to change the default, could an option to disable it be
provided)?

Štěpán

Re: Make format-patch produce UTF-8 `From:' header (was Re: git am should recognize >From)

From: Erik Faye-Lund <hidden>
Date: 2016-06-15 22:49:34

On Sun, Sep 19, 2010 at 8:38 PM, Štěpán Němec [off-list ref] wrote:
Jonathan Nieder [off-list ref] writes:
quoted
Maybe format-patch could provide another mode to produce patches that
do not include unnecessary headers (in particular, leaving out the
difficult "From " line and using UTF-8 instead of quoted-printable for
the "From: " line).
FWIW, the quoted-printable `From:' encoding has always annoyed me -- I
replace it manually with my name & address in UTF-8 every time I send
out a patch. What is the reason format-patch does that (and if there is
a reason not to change the default, could an option to disable it be
provided)?
I believe the reason is that RFC 5322 doesn't allow header-fields to
be encoded in other ways that by QP, but I could be wrong.

QP being used even when the "From:"-line is inlined in the message
body seems to be an artefact of the way it's done, and should be
possible to avoid.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help