From hhalvors at Princeton.EDU Fri Mar 9 10:40:09 2007 From: hhalvors at Princeton.EDU (Hans Halvorson) Date: Fri, 09 Mar 2007 05:40:09 -0500 Subject: [cl-curl-devel] c-string decoding error Message-ID: <87bqj2d7jq.wl%hhalvors@Princeton.EDU> 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 #) 3: (RETURN-STRING #) 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)) #) From lnp at healy.washington.dc.us Sun Mar 11 00:05:33 2007 From: lnp at healy.washington.dc.us (Liam Healy) Date: Sat, 10 Mar 2007 19:05:33 -0500 Subject: [cl-curl-devel] c-string decoding error In-Reply-To: <87bqj2d7jq.wl%hhalvors@Princeton.EDU> References: <87bqj2d7jq.wl%hhalvors@Princeton.EDU> Message-ID: <654935030703101605v6d857075wda55ad3dc19a03cc@mail.gmail.com> 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 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:SIGNED > 8))>) > 3: (RETURN-STRING > # > (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)) > #) > > _______________________________________________ > 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: