From: Erik Faye-Lund Date: Thu, 06 May 2010 17:26:34 GMT Subject: Re: What should be the CRLF policy when win + Linux? Message-ID: In-Reply-To: On Thu, May 6, 2010 at 7:15 PM, Linus Torvalds wrote: > > > 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