Email list hosting service & mailing list manager

peek-char problem Shiro Kawai (18 Jun 2020 03:41 UTC)
Re: peek-char problem Marc Nieper-Wißkirchen (18 Jun 2020 05:52 UTC)
Re: peek-char problem Göran Weinholt (18 Jun 2020 09:03 UTC)
Re: peek-char problem Shiro Kawai (18 Jun 2020 10:13 UTC)
Re: peek-char problem Göran Weinholt (18 Jun 2020 12:25 UTC)
Re: peek-char problem Shiro Kawai (18 Jun 2020 19:09 UTC)
Re: peek-char problem Per Bothner (18 Jun 2020 16:29 UTC)
Re: peek-char problem Shiro Kawai (18 Jun 2020 18:53 UTC)

Re: peek-char problem Per Bothner 18 Jun 2020 16:29 UTC

On 6/18/20 3:13 AM, Shiro Kawai wrote:
> A few issues are mixed in.
>
> - CRLF problem: If we can assume R6RS semantics, we can leave its handling to transcoders and we may say textual input port only returns #\newline.  However, R7RS explicitly says read-line must recognize CR, LR, and CRLF.

I don't think the R7RS definition of read-line precludes CR/LF/CRLF being normalized
to LF by a transcoder.

However, it does seems to imply that a string port (or other textual port
that does not use a transcoder) check for CR/LF/CRLF.
--
	--Per Bothner
xxxxxx@bothner.com   http://per.bothner.com/