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/