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

Re: Fwd: am fails to apply patches for files with CRLF lineendings

From
Andreas Schwab <schwab@linux-m68k.org>
Date
Dec 15, 2009, 23:18 UTC
Message-ID
<m2vdg7u8qk.fsf@igel.home>
In-Reply-To
<ee63ef30912141809k27bc73edp20abddd5e9c7c063@mail.gmail.com>
Brandon Casey <drafnel@gmail.com> writes:
Show 5 quoted lines
> But isn't each email in the mbox file supposed to be RFC-2822
> formatted anyway?  If so, then my reading of RFC-2822 says that there
> should only be CRLF everywhere and no bare CR or bare LF.  But maybe
> everyone has just been ignoring that part of RFC-2822?  I'm not an
> email expert, so I really don't know.

RFC 2822 specifies a *transport* format, where each text lines is represented by terminating it with CRLF. Any other use is outside the scope of that RFC. The mbox format normally uses the native format for text files, which means LF terminated lines when used under Unix.

Andreas.
-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
Previous: Brandon CaseyNext: Junio C Hamano
Message 14 of 18 in “am fails to apply patches for files with CRLF lineendings”
  1. Björn SteinbrinkDec 14, 2009
  2. Junio C HamanoDec 14, 2009
  3. Junio C HamanoDec 14, 2009
  4. Brandon CaseyDec 14, 2009
  5. Junio C HamanoDec 14, 2009
  6. Björn SteinbrinkDec 14, 2009
  7. Jason KingDec 14, 2009
  8. Björn SteinbrinkDec 15, 2009
  9. Andreas SchwabDec 15, 2009
  10. Andreas SchwabDec 16, 2009
  11. Fwd: am fails to apply patches for files with CRLF lineendingsBrandon Casey, Dec 15, 2009
  12. Sverre RabbelierDec 15, 2009
  13. Brandon CaseyDec 15, 2009
  14. Andreas SchwabDec 15, 2009
  15. Junio C HamanoDec 15, 2009
  16. Brandon CaseyDec 15, 2009
  17. Brandon CaseyJan 5, 2010
  18. Jason KingFeb 13, 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.