lua-users home
lua-l archive

Re: Cross-platform newlines in multiline strings

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
RLake@oxfam.org.pe 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>.
Uhh... That was new to me. Looking further it seems that the mess
on old MacOS is even worse - some compilers have \r and \n swapped,
some not. Some have switches to select behaviour, and then there
are also different libraries -- \r \n swapping and non-swapping
versions.
Time to change some \n and \r occurences in Sol...
> protocols use "13円10円" as a line terminator,
"13円10円"? "15円12円"! *scnr*
Ciao, ET.

AltStyle によって変換されたページ (->オリジナル) /