D
Dik T. Winter
Trying to clarify things.
Wrong. On the Mac the linemarker is a CR, not a LF. And there is just a
single character there. (This entirely conforms to the ASCII standard of
that time which states that when only a single character is used to mark
the end of a line, the CR should be used. Unix violated this.)
You are right.
It better should defind '\n' as 13, because that is the way it is.
However, when transporting text files from the Mac to Unix I always
MacOSX uses ISO 8859-1, I think.
Wrong. On the Mac the linemarker is a CR, not a LF. And there is just a
single character there. (This entirely conforms to the ASCII standard of
that time which states that when only a single character is used to mark
the end of a line, the CR should be used. Unix violated this.)
> OT: I am 100% positive that traditional MacOS (up to and including
> MacOS9) use the byte with value 13 to separate text line, with no 10.
You are right.
> Getting back on topic: Apple's own C comilers, part of MPW Shell, indeed
> defines '\n' as 13, and '\r' as 10. This is NOT an option (contrary to
> other compilers). This cause no porting problem with most code.
It better should defind '\n' as 13, because that is the way it is.
However, when transporting text files from the Mac to Unix I always
do a 10 said:> [OT: there are headaches when moving files across a network. The
> worse is that for diacriticals such as eacute encoded on a byte, Apple
> has used FOUR different encodings on the Apple2, Lisa, Traditional MacOS,
> and MacOSX; and none of these is the same as in DOS].
MacOSX uses ISO 8859-1, I think.