On Tue, Apr 5, 2011 at 3:49 PM, Remigiusz Modrzejewski
<l...@maxnet.org.pl> wrote:
> On Apr 4, 2011, at 22:55 , Stephan Beal wrote:
>> On a related note: some tools (like cvs or svn) warn if a file's last line
>> has no end-of-line marker. That's because (as i was taught, anyway) the
>> official definition of a text file is basically variable-length records
>> separated by a record separator (an end-of-line sequence (\n on *nix, \r\n
>> on Windows)), and that the last record must also have such a separator.
>
> Actually, this way the definition says that the last line can not have a \n. 
> You
> probably wanted to write "ended by a record separator", but then the word
> separator is misleading ;)

I recall it being defined as variable length records, each ending with
a record terminator, which was, because of the way teletype machine
worked, CR-LF. (Though, with the real machine, LF-CR had the same end
result.) Interestingly, Microsoft choose control-Z as end-of-file,
rather than any of the other defined control values that might have
been better. My guess is that that was because Z is the last letter of
the alphabet, and Z being closest to the lower left corner of the
keyboard.
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to