[X-Unix] Why didn't Apple change the line break ?

Eugene Lee list-themacintoshguy at fsck.net
Tue Sep 21 01:52:37 PDT 2004


On Mon, Sep 20, 2004 at 02:44:15PM -0400, Alexandre Quessy wrote:
: 
: I am a web developer, and I am having problems with charcter encoding, 
: and especially line breaks on Mac OS X. I wonder why Apple didn't 
: change the line break to the UNIX standard instead of keeping the same 
: old one. Anyone have an idea ?

Apple did, partially.  Traditional Unix command-line tools and all Cocoa
apps use LF for EOL.  Old Mac OS apps (i.e. Classic and Carbon apps) use
CR for EOL.  Nowadays, most editors are smart enough to detect different
EOL characters and provide the ability to convert between text formats.
If the editor cannot do this, it sucks.


-- 
Eugene Lee
http://www.coxar.pwp.blueyonder.co.uk/



More information about the X-Unix mailing list