Re: git am and CRLF files

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Erik Faye-Lund
Date: Monday, November 16, 2009 - 4:43 am

On Mon, Nov 16, 2009 at 11:50 AM, Nanako Shiraishi <nanako3@lavabit.com> wrote:

According to RFC 5322, email messages use CRLF as the
newline-sequence. In order to be able to distinguish between CRLF and
LF in an e-mail patch, the message needs to be use some
transfer-encoding that preserves newline style (like base64).

Perhaps this would be better fixed by having format-patch (or prehaps
the MUA ?) base64-encode the message body if the file contains
non-LF-newlines, and normalizing CRLF to LF before transport-decoding?
Or does some MUAs transport-decode before storing the message to disk?

I realize this might make it a bit tricky to review patches that
contains CRLF-newlines before mailing them out, but perhaps inspecting
the format-patch output is the wrong place to do this?

-- 
Erik "kusma" Faye-Lund
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
git am and CRLF files, Stefan Naewe, (Fri Nov 13, 2:44 am)
Re: git am and CRLF files, Stefan Naewe, (Mon Nov 16, 12:33 am)
Re: git am and CRLF files, Nanako Shiraishi, (Mon Nov 16, 3:50 am)
Re: git am and CRLF files, Stefan Naewe, (Mon Nov 16, 4:15 am)
Re: git am and CRLF files, Erik Faye-Lund, (Mon Nov 16, 4:43 am)
Re: git am and CRLF files, Daniele Segato, (Mon Nov 30, 5:06 am)
Re: git am and CRLF files, Ismael Luceno, (Mon Nov 30, 5:50 am)