[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-hackers] [PATCH] Treat lone carriage returns as line ending
From: |
John Cowan |
Subject: |
Re: [Chicken-hackers] [PATCH] Treat lone carriage returns as line endings in ##sys#scan-buffer-line |
Date: |
Thu, 31 Oct 2013 09:43:32 -0400 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
Evan Hanson scripsit:
> I think this normalizes CR/LF handling for `read-line` across
> all the port types (though interestingly it doesn't make it quite
> R7RS-compatible, since that specifies that multiple carriage returns
> should be collapsed when followed by a linefeed, rather than just one).
I think you are misreading R7RS here. It says:
For the purpose of this procedure, an end of line consists of
either a linefeed character, a carriage return character, or a
sequence of a carriage return character followed by a linefeed
character.
I think you misread the last as "a sequence of carriage return characters
followed by a linefeed character".
--
XQuery Blueberry DOM John Cowan
Entity parser dot-com address@hidden
Abstract schemata http://www.ccil.org/~cowan
XPointer errata
Infoset Unicode BOM --Richard Tobin