[cl-curl-devel] c-string decoding error

Liam Healy lnp at healy.washington.dc.us
Sun Mar 11 00:05:33 UTC 2007


I have had a lot of problems with character sets.  Unfortunately I don't
have a good solution; a lot of times it depended on setting the
locale correctly in Debian.  I recommend you ask on the SBCL
mailing list or on #lisp if you use IRC.   It's also possible that the
error relates to the foreign function interface, so you may want
to ask on the UFFI mailing list as an alternative, or in addition.

Liam

On 3/9/07, Hans Halvorson <hhalvors at princeton.edu> wrote:
>
> I am trying to use cl-curl with sbcl 1.0 (unicode), and I get a
> c-string decoding error (please see the backtrace below).
>
> A web search revealed that this problem with sbcl has occurred in some
> other contexts (e.g. with the stump window manager), but I did not
> find any explanation of the underlying problem, or any resolution.
>
> Thanks,
> Hans
>
> ******************************
>
>
> c-string decoding error (:external-format :UTF-8):
>   the octet sequence 1 cannot be decoded.
>    [Condition of type SB-INT:C-STRING-DECODING-ERROR]
>
> Backtrace:
>   0: (SB-INT:C-STRING-DECODING-ERROR :UTF-8 1)
>   1: (SB-IMPL::READ-FROM-C-STRING/UTF-8
>       #.(SB-SYS:INT-SAP #X080ACBB8)
>       CHARACTER)
>   2: (RETURN-STRING-INT
>       #<SB-ALIEN-INTERNALS:ALIEN-VALUE :SAP #X08082F00 :TYPE (*
>
>                                                               (SB-ALIEN:SIGNED
>                                                                8))>)
>   3: (RETURN-STRING
>       #<SB-ALIEN-INTERNALS:ALIEN-VALUE :SAP #X08082F00 :TYPE (*
>
>                                                               (SB-ALIEN:SIGNED
>                                                                8))>)
>   4: (NIL)
>   5: (SB-INT:SIMPLE-EVAL-IN-LEXENV
>       (WITH-CONNECTION-RETURNING-STRING (:COOKIES NIL)
>                                         (SET-OPTION :URL
>                                                     "http://www.foobar.com
> ")
>                                         (SET-OPTION :POSTFIELDS
>                                                     "foo-bar")
>                                         (PERFORM))
>       #<NULL-LEXENV>)
>
> _______________________________________________
> cl-curl-devel mailing list
> cl-curl-devel at common-lisp.net
> http://common-lisp.net/cgi-bin/mailman/listinfo/cl-curl-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/cl-curl-devel/attachments/20070310/c969bda2/attachment.html>


More information about the Cl-curl-devel mailing list