[tbnl-devel] sbcl 0.9.7, tbnl 0.8.7.0, serving images

Folks-- Is there still no workaround (aside from using apache) for serving images via tbnl standalone and sbcl? Here's the error I get: #<SB-SYS:FD-STREAM for "file /home/keith/projex/cl-marmoset/client/arrowdown.gif" {B2FAFA9}> (:EXTERNAL-FORMAT :UTF-8): the octet sequence (145) cannot be decoded. Does the newer TBNL fix this? Doesn't sbcl support bi-valent streams, now? Curious.... --T

On Tue, 13 Dec 2005 14:22:17 -0800, Tolstoy <tolstoy@zentrope.com> wrote:
Here's the error I get:
And how did you get it?
#<SB-SYS:FD-STREAM for "file /home/keith/projex/cl-marmoset/client/arrowdown.gif" {B2FAFA9}> (:EXTERNAL-FORMAT :UTF-8): the octet sequence (145) cannot be decoded.
It obviously doesn't make sense to open a file with UTF-8 encoding if it isn't encoded in UTF-8. I don't use SBCL myself so I can't give advice but maybe someone else on this list can.
Does the newer TBNL fix this? Doesn't sbcl support bi-valent streams, now?
There's a link from the TBNL docs to a mailing list message about this topic. Did you read that? Cheers, Edi.

On Wed, 2005-12-14 at 01:02 +0100, Edi Weitz wrote:
On Tue, 13 Dec 2005 14:22:17 -0800, Tolstoy <tolstoy@zentrope.com> wrote:
Basically, it's all fixed, but just to answer questions anyway in case they're somehow helpful:
Here's the error I get:
And how did you get it?
I have: (mapcar (lambda (args) (apply #'create-static-file-dispatcher-and-handler args)) '(("/cms2/" "client/index.html") ("/cms2/styles" "client/styles.css" "text/css") ("/cms2/opened.gif" "client/arrowdown.gif" "image/gif") ("/cms2/closed.gif" "client/arrowright.gif" "image/gif") ("/cms2/common.js" "client/common.js" "text/plain"))))) as part of my setup for *dispatch-table*. When I surfed to: http://localhost:3000/cms2/closed.gif I got the error in the log file.
#<SB-SYS:FD-STREAM for "file /home/keith/projex/cl-marmoset/client/arrowdown.gif" {B2FAFA9}> (:EXTERNAL-FORMAT :UTF-8): the octet sequence (145) cannot be decoded.
It obviously doesn't make sense to open a file with UTF-8 encoding if it isn't encoded in UTF-8. I don't use SBCL myself so I can't give advice but maybe someone else on this list can.
Does the newer TBNL fix this? Doesn't sbcl support bi-valent streams, now?
There's a link from the TBNL docs to a mailing list message about this topic. Did you read that?
Nope. But then I did. ;) Thanks for the pointer. In a nutshell, once you push :tbnl-bivalent-streams onto *features*, you can use the sbcl/tbnl combo as standalone. This really cool for those of us who might want to deploy to a desktop and have users surf to a local admin app, or deploying to a demo machine, etc, etc. Anyway, thanks! T
Cheers, Edi.

Whoops, I replied off-list by accident. Sorry, Tolstoy. On 12/13/05, Tolstoy <tolstoy@zentrope.com> wrote:
Does the newer TBNL fix this? Doesn't sbcl support bi-valent streams, now?
I've only just begun to experiment with TBNL and SBCL, and I haven't tried serving images with the standalone TBNL yet, so this might be useless. That said, to make TBNL use SBCL's bivalent streams, I did this before compiling TBNL: (pushnew :tbnl-bivalent-streams *features*) If you already did that, then I'm at a loss. Will.
participants (3)
-
Edi Weitz
-
Tolstoy
-
Will McCutchen