Fix character reader for input like #\)
authorDavid Vázquez <davazp@gmail.com>
Tue, 18 Dec 2012 22:28:51 +0000 (23:28 +0100)
committerDavid Vázquez <davazp@gmail.com>
Tue, 18 Dec 2012 22:28:51 +0000 (23:28 +0100)
lispstrack.lisp

index 7a0b9b8..ba60596 100644 (file)
          (#\'
           (list 'function (ls-read stream)))
          (#\\
-          (let ((cname (read-until stream #'terminalp)))
+          (let ((cname
+                (concat (string (%read-char stream))
+                        (read-until stream #'terminalp))))
             (cond
               ((string= cname "space") (char-code #\space))
               ((string= cname "newline") (char-code #\newline))