#10 faithful character i/o

open
Bruno Haible
None
5
2006-12-31
2003-05-03
Sam Steingold
No

CLISP READ-CHAR reads bytes 10 and 13 as #\Newline:
<http://article.gmane.org/gmane.lisp.clisp.general/6970>
<http://article.gmane.org/gmane.lisp.clisp.general/4718>
Is it possible to read them differently?

Discussion

<< < 1 2 (Page 2 of 2)
  • Sam Steingold
    Sam Steingold
    2006-12-26

    Logged In: YES
    user_id=5735
    Originator: YES

    I don't see any compatibility issues.
    any text stream knows its preferred encoding, so #\Newline is never written as its char-code.
    the woe32 editing of fas files issue is fairly rare, and the only problem there would occur if there are embedded newlines in strings.
    this should be addressed by always quoting CR&LF in all strings, symbols and package names in compiled files (we know that we are reading from a compiled file when stream is the same as *load-file*).

     
  • Sam Steingold
    Sam Steingold
    2006-12-31

    • status: closed-rejected --> open
     
<< < 1 2 (Page 2 of 2)