Get the latest tech news

CRLF is obsolete and should be abolished


Definitions Carriage-Return (CR) → Move the cursor to the left margin but keep it on the same row. LineFeed (LF) → Move the cursor down one row, causing all prior rows to scroll upwards, but keep the cursor on the same column.

By the age of Multix and Unix in the late 1960s and early 1970s, most people recognized that using CRLF as a NL was silly, and so the task of sending separate CR and LF characters was relegated to the device drivers for teleprinters, since that is where work-arounds for hardware quirks belong. Nevertheless, a minority of machines still insist on sending a CR together with their NLs, the official Unicode name for U+000a is still LF, and various protocols (HTTP, SMTP, CSV) still "require" CRLF at the end of each line. Written by D. Richard Hipp, creator of SQLite, Fossil, Althttpd, et cetera, in Charlotte, NC, USA on 2024-10-10 with minor edits thereafter.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of CRLF

CRLF