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.<br><br>Juanjo<br><br><div class="gmail_quote">On Wed, Jan 26, 2011 at 9:00 AM, Marko Kocić <span dir="ltr"><<a href="mailto:marko.kocic@gmail.com">marko.kocic@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">It still doesn't work.<br>
Here's the small test:<br>
<br>
Top level in: #<process TOP-LEVEL>.<br>
> (require 'sockets)<br>
<br>
NIL<br>
><br>
(defun make-stream (host port element-type)<br>
(let* ((endpoint (sb-bsd-sockets:host-ent-address<br>
(sb-bsd-sockets:get-host-by-name host)))<br>
(socket (make-instance<br>
'sb-bsd-sockets:inet-socket<br>
:protocol :tcp<br>
:type :stream)))<br>
(sb-bsd-sockets:socket-connect socket endpoint port)<br>
(sb-bsd-sockets:socket-make-stream<br>
socket<br>
:element-type element-type<br>
:input t<br>
:output t<br>
:buffering :full)))<br>
<br>
MAKE-STREAM<br>
><br>
(defun test-it ()<br>
(let ((stream (make-stream "<a href="http://lisp.org" target="_blank">lisp.org</a>" 80 '(unsigned-byte 8))))<br>
(stream-element-type stream)))<br>
<br>
TEST-IT<br>
> (test-it)<br>
<br>
CHARACTER<br>
><br>
<br>
On Mon, Jan 24, 2011 at 11:04 PM, Juan Jose Garcia-Ripoll<br>
<div class="im"><<a href="mailto:juanjose.garciaripoll@googlemail.com">juanjose.garciaripoll@googlemail.com</a>> wrote:<br>
</div><div><div></div><div class="h5">> On Mon, Jan 24, 2011 at 2:46 PM, Marko Kocić <<a href="mailto:marko.kocic@gmail.com">marko.kocic@gmail.com</a>> wrote:<br>
>><br>
>> I just looked at the source code and it occured to me that<br>
>> sb-bsd-scokets:socket-make-stream doesn't even have element-type<br>
>> keyword argument. All it has is :external-format.<br>
>> However, in SBCL, there are both element-type and external-format<br>
>> parameters.<br>
><br>
> I just uploaded a fix for this. Could you please check it?<br>
> Juanjo<br>
><br>
> --<br>
> Instituto de Física Fundamental, CSIC<br>
> c/ Serrano, 113b, Madrid 28006 (Spain)<br>
> <a href="http://juanjose.garciaripoll.googlepages.com" target="_blank">http://juanjose.garciaripoll.googlepages.com</a><br>
><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Instituto de Física Fundamental, CSIC<br>c/ Serrano, 113b, Madrid 28006 (Spain) <br><a href="http://juanjose.garciaripoll.googlepages.com" target="_blank">http://juanjose.garciaripoll.googlepages.com</a><br>