git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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.

Previous: Štěpán Němec
Message 10 of 10 in “Re: git am should recognize >From”
  1. Jonathan NiederSep 19, 2010
  2. Jonathan NiederSep 19, 2010
  3. Russ AllberySep 19, 2010
  4. Make format-patch produce UTF-8 `From:' header (was Re: git am should recognize >From)Štěpán Němec, Sep 19, 2010
  5. Russ AllberySep 19, 2010
  6. use base64 instead of quoted-printable in format-patch headers (was Re: Make format-patch produce UTF-8 `From:' header)Štěpán Němec, Sep 20, 2010
  7. Ævar Arnfjörð BjarmasonSep 20, 2010
  8. Brandon CaseySep 20, 2010
  9. Štěpán NěmecSep 20, 2010
  10. Erik Faye-LundSep 19, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.