[Ecls-list] element-type in socket-make-stream - Was: ECL quicklisp bug report - Cause found, fix needed
Juan Jose Garcia-Ripoll
juanjose.garciaripoll at googlemail.com
Wed Jan 26 13:35:55 UTC 2011
I believe I identified the problem. It will be one or two days until I can
upload the fix, though -- patch attached to this email.
Juanjo
On Wed, Jan 26, 2011 at 9:00 AM, Marko Kocić <marko.kocic at gmail.com> wrote:
> It still doesn't work.
> Here's the small test:
>
> Top level in: #<process TOP-LEVEL>.
> > (require 'sockets)
>
> NIL
> >
> (defun make-stream (host port element-type)
> (let* ((endpoint (sb-bsd-sockets:host-ent-address
> (sb-bsd-sockets:get-host-by-name host)))
> (socket (make-instance
> 'sb-bsd-sockets:inet-socket
> :protocol :tcp
> :type :stream)))
> (sb-bsd-sockets:socket-connect socket endpoint port)
> (sb-bsd-sockets:socket-make-stream
> socket
> :element-type element-type
> :input t
> :output t
> :buffering :full)))
>
> MAKE-STREAM
> >
> (defun test-it ()
> (let ((stream (make-stream "lisp.org" 80 '(unsigned-byte 8))))
> (stream-element-type stream)))
>
> TEST-IT
> > (test-it)
>
> CHARACTER
> >
>
> On Mon, Jan 24, 2011 at 11:04 PM, Juan Jose Garcia-Ripoll
> <juanjose.garciaripoll at googlemail.com> wrote:
> > On Mon, Jan 24, 2011 at 2:46 PM, Marko Kocić <marko.kocic at gmail.com>
> wrote:
> >>
> >> I just looked at the source code and it occured to me that
> >> sb-bsd-scokets:socket-make-stream doesn't even have element-type
> >> keyword argument. All it has is :external-format.
> >> However, in SBCL, there are both element-type and external-format
> >> parameters.
> >
> > I just uploaded a fix for this. Could you please check it?
> > Juanjo
> >
> > --
> > Instituto de Física Fundamental, CSIC
> > c/ Serrano, 113b, Madrid 28006 (Spain)
> > http://juanjose.garciaripoll.googlepages.com
> >
>
--
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20110126/3f6489e5/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-In-sockets.lisp-the-stream-element-type-was-override.patch
Type: application/octet-stream
Size: 2031 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20110126/3f6489e5/attachment.obj>
More information about the ecl-devel
mailing list