[Bese-devel] UTF-8 and mod-lisp backend

Aleksandar Bakic a_bakic at yahoo.com
Sat Nov 26 21:07:53 UTC 2005


Hi,

The same for the araneida backend. I believe I have reported this a few weeks
ago, but am not sure as I had already patched my araneida.lisp file to serve
binary content. Basically, the (double) patch looks like this:

<   (let ((content (get-output-stream-string (content-stream r))))
---
>   (let ((content (if (starts-with content-type "text")
>                    #+sb-unicode
>                    (sb-ext:string-to-octets
>                     (get-output-stream-string (content-stream r)))
>                    #-sb-unicode
>                    (get-output-stream-string (content-stream r))
>                    (content-stream r))))

Alex

--- Alexey Lebedeff <binarin at binarin.ru> wrote:

> 
> Hello.
> 
> Recently I noticed strange behaviour when using utf8 and mod-lisp. When
> multibyte characters was present in output, the output was truncated
> because of mismatch of byte and character lengths of this output.
> 
> Here is the patch. Solution with sb-ext:string-to-octets is far from
> perfect, but it works =)
> 
> > 
> 
> -- 
> [1180'99:11-6a] [BMSTU:AK5-111]
> > _______________________________________________
> bese-devel mailing list
> bese-devel at common-lisp.net
> http://common-lisp.net/cgi-bin/mailman/listinfo/bese-devel
> 



		
__________________________________________
Yahoo! DSL – Something to write home about.
Just $16.99/mo. or less.
dsl.yahoo.com




More information about the bese-devel mailing list