line endings and Cygwin
Aaron Bentley
aaron.bentley at utoronto.ca
Wed Apr 13 14:39:40 BST 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Martin Pool wrote:
| (Why oh why did Microsoft ever think CRLF was a good idea?...)
AIUI, CRLF was the *original* idea, on teletypes. Of course, back then,
they were presentational, and didn't have quite the meaning they do
nowadays. They didn't mean "end of line", they meant "and then move
like so".
A teletype hack to print a diagonal line made of Xs might go
"\r\nX\nX\nX\nX\nX\n"
Unix decided linefeed implied carriage return, Mac decided carriage
return implied linefeed, and Microsoft clung faithfully to the orignal
standard.
Not the usual Microsoft story, I know. Probably decisions made back in
the QDOS days. I wonder what CP/M did?
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCXSEc0F+nu1YWqI0RAhODAJ4kM0V/ga15c4abSIHoC2iG3IH2mACdHRSk
vwnFAAzm/zk4YL7L88uxT6Y=
=Dz9A
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list