[babel-devel] octets-to-string with UTF8 and Byte Order Marker

Luís Oliveira luismbo at gmail.com
Tue Apr 12 22:23:25 UTC 2011


Hello again,

On Wed, Apr 6, 2011 at 11:07 AM, Rob Blackwell <rob.blackwell at aws.net> wrote:
> If I use (babel:octets-to-string foo) on a byte array with BOM markers, then
> my SBCL Lisp image dies.

I've tried this out and it works for me:

  CL-USER> (babel:octets-to-string (babel-tests::ub8v 239 187 191 102 111 111))
  "foo"
  CL-USER> (length *)
  4

I'm guessing you're using SLIME and you haven't set your
slime-net-coding-system to 'utf-8-unix or something similar. Have a
look at the *inferior-lisp* when your Lisp crashes to see if that's
the case.

HTH,

-- 
Luís Oliveira
http://r42.eu/~luis/




More information about the babel-devel mailing list