[slime-devel] Re: [slime-cvs] CVS update: slime/swank-cmucl.lisp

Helmut Eller e9626484 at stud3.tuwien.ac.at
Thu Oct 16 11:43:35 UTC 2003


Daniel Barlow <dan at telent.net> writes:

> Helmut Eller <heller at common-lisp.net> writes:
> 
> > +(defun read-next-form ()
> > +  (handler-case 
> > +      (let* ((length (logior (ash (read-byte *emacs-io*) 16)
> > +			     (ash (read-byte *emacs-io*) 8)
> > +			     (read-byte *emacs-io*)))
> > +	     (string (make-string length)))
> > +	(sys:read-n-bytes *emacs-io* string 0 length)
> > +	(read-form string))
> > +    (condition (c)
> > +      (throw 'serve-request-catcher c))))
> 
> OK, so what is the problem with CMUCL that means it can't use
> read-sequence here?  I know it used to be broken (did partial reads)
> but I thought that was fixed ages ago.  Can we not report this as a
> bug to the cmucl developers?

I think you can't read bytes and characters from the same stream.  If
that's a bug, then a proper fix is of course preferable.

--helmut.




More information about the slime-devel mailing list