by damck · 8y ago · 0 comments
You probably know this, but LF is "line feed" which advances the feed.
CR is "carriage return" which puts the carridge to the start of the line.
The combination makes sense because it does both, it returns the carriage and advances the line.
Just LF kind of makes sense because when you advance the line you can think of the line being empty.
But conceptually just CR suggests returning the carriage but that doesn't imply the newline.
Of course the terminology is originally from type-writers so it doesn't have to make sense, but it does seem odd that some systems chose just CR.
This is partly why stty and termios have options for CRLF translation on terminals. I'm sure there's some historical reason for that.
This builds with CodeWarrior 10 (from 1996) which is probably OK with non-Mac line endings, but there are other old Mac codebases on GitHub using older toolchains that require CR. (i.e. Pararena 2: http://bslabs.net/2016/11/13/building-pararena/)
A PPC Mac running OS X 10.4 is basically the only way to work with both git and classic Mac dev environments, I'll be trying this out myself.
You might also need to force your browser to display with "Western" text encoding (that's what it's called in Firefox, not sure about other browsers).
Best thing about GPL code is that we can fix it!