[OT] Modern-day Mac EOLs?

Walter Bright newshound1 at digitalmars.com
Tue Sep 8 02:51:30 PDT 2009


Nick Sabalausky wrote:
> I know (or at least have heard) that Mac's EOLs are traditionally '\r'. But, 
> mac directory separators are traditionally ':' and I know that these days 
> macs can, and often do, use '/' just fine instead. So...are '\r' line 
> endings still in use and worth supporting, or have they pretty much 
> disappeared in favor of '\n'? (I'm mainly wondering for code, but also 
> curious about other text too). 

What I do is regard the following:

CR
LF
CR,LF

as line separators. Haven't had a problem with that strategy.



More information about the Digitalmars-d mailing list