Rationale of choosing difference new line representation by Unix, Mac, DOS/Windows?
问题 Does anyone know the original rationale, or story, of the different platforms each choosing a different, yet similar to some degree, new line representation? There must be some design decisions made originally. (I don't believe this is all random choice ...) Unix/Mac OS X: LF (\n) Mac OS 9 and before: CR (\r) DOS/Windows: CRLF (\r\n) 回答1: Jeff Atwood posted on this very topic in "The Great Newline Schism" Wikipedia covers the history of newline. In short, CR+LF is a reference to the electric