Re: Please make git-am handle \r\n-damaged patches
- From
Erik Faye-Lund <kusmabite@googlemail.com>
- Date
- Aug 4, 2009, 20:59 UTC
- Message-ID
- <40aa078e0908041359p79b111eo2f389dde25bb0876@mail.gmail.com>
- In-Reply-To
- <7v7hxk5b4y.fsf@alter.siamese.dyndns.org>
On Tue, Aug 4, 2009 at 8:46 AM, Junio C Hamano<gitster@pobox.com> wrote:
Show 5 quoted lines
> I thought about this approach, but it made me worried about a case where > an otherwise sane piece of e-mail has \r at the end of one line as the > real payload. But as long as we are talking about a text e-mail (and we > are talking about mailsplit here and a binary payload with a CTE applied > counts as text), I think we can safely use an approach like this.
RFC 2822, section 2.3 explicitly states that a CR should not occur without a LF (and vice versa, but the e-mail client might convert CRLF to LF when saving to file), so I think this should be safe.
-- Erik "kusma" Faye-Lund kusmabite@gmail.com (+47) 986 59 656