[tbnl-devel] sbcl 0.9.7, tbnl 0.8.7.0, serving images
Tolstoy
tolstoy at zentrope.com
Wed Dec 14 01:51:10 UTC 2005
On Wed, 2005-12-14 at 01:02 +0100, Edi Weitz wrote:
> On Tue, 13 Dec 2005 14:22:17 -0800, Tolstoy <tolstoy at 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.
More information about the Tbnl-devel
mailing list