[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: strange question about the io.write
- From: Philippe Lhoste <PhiLho@...>
- Date: Thu, 19 Nov 2009 14:36:53 +0100
On 19/11/2009 11:08, Kenneth Forsbäck wrote:
Different platforms use different definitions for new line.
unix/linux = LF
windows = CRLF
mac = CR
To be exact, pre-OS X Macs use CR only. AFAIK, MacOS X uses LF like all Unix systems.
bidong liao wrote:
but why? different platforms got different results(mac got CRLF but
Because on systems with LF as line ending, CR is kept as is, LF is converted to system's
line ending, ie. LF...
-- (near) Paris -- France
-- -- -- -- -- -- -- -- -- -- -- -- -- --