Re: [Fwd: Re: How to load files with Mac line ending?]

Steve Haflich <[email protected]> Fri, 19 Aug 2005 08:58:06 -0700
Newsgroups gmane.lisp.allegro
Message-ID <16984.1124467086@bach>
   From: "James Anderson" <[email protected]>
   
   this works;
   
   (defun |universal-comment-reader| (stream char)
     (declare (ignore char))
     (loop (case (read-char stream nil nil)
             ((#\return #\linefeed nil) (return))
             (t )))
     (values))
   
   (set-macro-character #\; '|universal-comment-reader|)
   
This approach fails if any other code makes a copy of the standard
readtable with (copy-readtable nil).