|
haha ... imagine that ... Microsoft strictly adhering to a standard. :p Must have been the good ol' days. Adam Lang Systems Engineer Rutgers Casualty Insurance Company http://www.rutgersinsurance.com ----- Original Message ----- From: "Leif Svalgaard" <leif@leif.org> To: <midrange-l@midrange.com> Sent: Thursday, February 14, 2002 2:18 PM Subject: Re: Unix file to PC, weird LF-CR > TTYs were originally hardware devices, which > (usually) adhered strictly to the ASCII standard. > According to ASCII, to move to a new line you > need two characters, a carriage return and a > line feed. In Unix, on the other hand, the > ASCII line feed is used for both purposes - so > we can't just use \n, because it wouldn't have > a carriage return and the next line will > start at the column right after the line feed. > > In CP/M and its derivatives, such as MS-DOS and > Windows, the ASCII standard was strictly > adhered to, and therefore a new line requires > both a line feed and a carriage return.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.