Subversion book.
John Maher
JohnM at rotair.com
Tue Nov 15 07:48:49 CST 2011
Hello
I just wanted to point out something that can be worded better in the
book. The paragraph::
"Not all of the various tools on these operating systems understand
files that contain line endings in a format that differs from the native
line-ending style of the operating system on which they are running. So,
typically, Unix programs treat the CR character present in Windows files
as a regular character (usually rendered as ^M), and Windows programs
combine all of the lines of a Unix file into one giant line because no
carriage return-linefeed (or CRLF) character combination was found to
denote the ends of the lines."
Is not correct in the latter part. The reason a Windows program all
the lines of a Unix file is because there is not because it is looking
for a CRLF. LF advances the printer 1 line and (usually) does nothing
on the screen. CR moves the cursor all the way to the left of a line on
the printer. On the screen it moves the cursor all the way to the left
AND down one line. (Think LF is advancing the paper on a typewriter and
CR is sliding the paper holder (carriage) all the way to the right).
You could change all the LF to CR and see the lines in a more readable
fasion. It would be better if it said something like this:
Windows programs combine all of the lines of a Unix file into one giant
line because no carriage return (or CR) character was found to denote
the ends of the lines.
Windows adds the LF as a courtesy for old school printing.
JPM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.red-bean.com/pipermail/svnbook-dev/attachments/20111115/61e70cbd/attachment.html>
More information about the svnbook-dev
mailing list