is the value of CR really platform dependant?

Kee Nethery kee at
Fri Aug 30 11:39:01 EDT 2002

Someone said that I should take all my line endings in a text field 
and convert them to the constant CR because that will do the right 
thing per platform.

Before I release something I'd like to know if that is true given 
that CR is not mentioned as a constant in my online docs nor in my 
1.1.1 printed docs.

On Mac OS X I know that the constant CR (commonly known as carriage 
return and commonly known as ascii(13) but not in revolution) = 
ascii(10) a linefeed

Does CR = CRLF = ascii(13) and ascii(10) on windows?

Does CR = ascii(13) on Mac OS 9?

Does CR = linefeed ascii(10) on unix/Linux platforms?

Kee Nethery

More information about the Use-livecode mailing list