reading/writing strings

Heath Putnam <[email protected]> Sun, 4 Nov 2012 01:38:00 -0700
Newsgroups gmane.lisp.scheme.scheme48
Message-ID <CAJBZ0gjqqKavAi7PO3nE_Mr7ZGDYQm49FTwk80fLpsMe3-kFjA@mail.gmail.com>
If you type "'" at the command line, the system writes back "\'".
If you type "\'" in, the system fails, because read doesn't expect #\'
to be escaped.

The relevant code is in scheme/rts/{read|write}.scm

I changed decode-escape in scheme/rts/read.scm to read #\' the way it
reads #\\, rebuilt my system and now I can read the output of write
even when the strings include #\'.

I was fairly certain that read and write would be inverses of each
other (w.r.t. strings), so now I'm wondering if my fix was correct, or
if I'm misunderstanding things and have actually made things less
correct.

Heath