Re: Make format-patch produce UTF-8 `From:' header (was Re: git am should recognize >From)
- From
Erik Faye-Lund <kusmabite@gmail.com>
- Date
- Sep 19, 2010, 19:44 UTC
- Message-ID
- <AANLkTimivpZPJo-3OoFQ2OVqzO_8_RMEfUwjamScds7_@mail.gmail.com>
- In-Reply-To
- <87y6axshmt.fsf_-_@gmail.com>
On Sun, Sep 19, 2010 at 8:38 PM, Štěpán Němec <stepnem@gmail.com> wrote:
Show 13 quoted lines
> Jonathan Nieder <jrnieder@gmail.com> 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)? >
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.