[tbnl-devel] Re: problems compiling TBNL 0.3.11 in SBCL 0.8.19

Edi Weitz edi at agharta.de
Sun Feb 27 16:46:36 UTC 2005


Hi John!

[Cc to mailing list.]

On Fri, 25 Feb 2005 23:54:42 -0800, John Wiseman <jjwiseman at yahoo.com> wrote:

> Hi, Edi.  I just wanted to let you know that I had some trouble
> compiling TBNL 0.3.11 in SBCL 0.8.19:
>
> ; /usr/local/lib/sbcl/site/tbnl-0.3.11/test/test.fasl written
> ; compilation finished in 0:00:02
>
> debugger invoked on a SB-INT:STREAM-DECODING-ERROR in thread 1771:
>    decoding error on stream
>    #<FILE-STREAM for "file
>     \"/usr/local/lib/sbcl/site/tbnl-0.3.11/test/fz.jpg\"" {48E6BF81}>
>    (:EXTERNAL-FORMAT :UTF-8):
>      the octet sequence (255 216 255 224) cannot be decoded.
>
> You can type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL.
>
> restarts (invokable by number or by possibly-abbreviated name):
>    0: [ATTEMPT-RESYNC   ] Attempt to resync the stream at a character
>    boundary
>                           and continue.
>    1: [FORCE-END-OF-FILE] Force an end of file.
>    2: [RETRY            ] Retry performing #<ASDF:LOAD-OP NIL
>    {48002121}> on
>                           #<ASDF:CL-SOURCE-FILE "test" {48006339}>.
>    3: [ACCEPT           ] Continue, treating #<ASDF:LOAD-OP NIL
>    {48002121}> on
>                           #<ASDF:CL-SOURCE-FILE "test" {48006339}> as
>                            having
>                           been successful.
>    4: [RETRY            ] Retry installation
>    5: [ABORT            ] Reduce debugger level (leaving debugger,
>    returning to
>                           toplevel).
>    6: [TOPLEVEL         ] Restart at toplevel READ/EVAL/PRINT loop.
> (SB-INT:STREAM-DECODING-ERROR
>   2
>   #<FILE-STREAM for "file
>    \"/usr/local/lib/sbcl/site/tbnl-0.3.11/test/fz.jpg\"" {48E6BF81}>
>   (255 216 255 224))[:EXTERNAL]

Looks like SBCL is expecting an UTF-8 encoded stream.  But this is a
JPG file and should be read as a sequence of octets.  I'm not familiar
with SBCL's new Unicode facilities, I guess you have to provide the
right external format when opening the stream.

TBNL on the SBCL/Mac combo won't work, though, because TBNL needs
threads.

Cheers,
Edi.



More information about the Tbnl-devel mailing list