Hello Michele
The two are used for years. Looki,g in TextWrangler preferences we may read:
Default loine breaks
Classic Mac (CR) Unix (LF) Windows (CRLF)
It seems that the Babel Tower is not completely destroyed.
More details are available in Wikiprdia:
Software applications and operating systems usually represent a newline with one or two control characters: - Systems based on ASCII or a compatible character set use either LF (Line feed, 0x0A, 10 in decimal) or CR (Carriage return, 0x0D, 13 in decimal) individually, or CR followed by LF (CR+LF, 0x0D 0x0A); see below for the historical reason for the CR+LF convention. These characters are based on printer commands: The line feed indicated that one line of paper should feed out of the printer, and a carriage return indicated that the printer carriage should return to the beginning of the current line.
- LF: Multics, Unix and Unix-like systems (GNU/Linux, AIX, Xenix, Mac OS X, FreeBSD, etc.), BeOS, Amiga, RISC OS, and others
- CR+LF: DEC RT-11 and most other early non-Unix, non-IBM OSes, CP/M, MP/M, DOS, OS/2, Microsoft Windows, Symbian OS
- CR: Commodore machines, Apple II family, Mac OS up to version 9 and OS-9
The complete article is available at:
Yvan KOENIG (VALLAURIS, France) jeudi 22 octobre 2009 20:20:22
|