[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Cross-platform newlines in multiline strings
- From: "Aaron Brown" <aaron-lua@...>
- Date: Tue, 6 Apr 2004 10:48:19 -0400
RLake wrote:
> If you have a system where <cr> is the end of line
> character (such as Mac OS <10), then the C compiler
> defines \n as <cr> and \r as <lf>.
Interesting. So when the Lua interpreter on Mac OS 9 reads
a DOS text file, it sees \n\r at the end of lines? If so,
then I see the sense in reading <X><LF><CR><LF><CR><X> as
two EOLs.
--
Aaron