Re: What should be the CRLF policy when win + Linux?
- From
Erik Faye-Lund <kusmabite@googlemail.com>
- Date
- May 6, 2010, 17:26 UTC
- Message-ID
- <k2s40aa078e1005061026x277757f4pae151c4d312eb3de@mail.gmail.com>
- In-Reply-To
- <alpine.LFD.2.00.1005061009020.901@i5.linux-foundation.org>
On Thu, May 6, 2010 at 7:15 PM, Linus Torvalds <torvalds@linux-foundation.org> wrote:
Show 9 quoted lines
> > > On Thu, 6 May 2010, hasen j wrote: >> >> I don't know all linux editors, but I've yet to see one that can't >> handle CRLF endings. > > A _lot_ of UNIX editors will handle CRLF endings, but if you change a > file, they often write the result back with _mixed_ endings.
Just for completeness: The inverse is also the case on Windows; a lot of editors will handle LF endings, but a handful of them will insert gladly insert CRLFs under certain circumstances. Microsoft Visual Studio is one of these.
So yeah, neither CRLF or LF everywhere is generally a good idea.
-- Erik "kusma" Faye-Lund