Historical reason behind different line ending at different platforms

后端 未结 3 856
别跟我提以往
别跟我提以往 2020-11-30 08:35

Why did DOS/Windows and Mac decide to use \\r\\n and \\r for line ending instead of \\n? Was it just a result of trying to be \"different\" from Unix?

And now that M

3条回答
  •  心在旅途
    2020-11-30 09:03

    It's interesting to note the CRLF is pretty much the internet standard. That is, pretty much every standard internet protocol that is line oriented uses CRLF. SMTP, POP, IMAP, NNTP, etc.. The body of email consists of lines terminated by CRLF.

提交回复
热议问题