edicl / flexi-streams

Flexible bivalent streams for Common Lisp
http://edicl.github.io/flexi-streams/
55 stars 26 forks source link

Probably, an error in octets-to-string #26

Closed ralcantaraperez closed 6 years ago

ralcantaraperez commented 6 years ago

I'm having an issue converting a string with octets-to-string: (octets-to-string #(13) :external-format '(:code-page :id 1252))

In SBCL it raises this error condition: Invalid index 1 for (SIMPLE-VECTOR 1), should be a non-negative integer below 1.

stassats commented 6 years ago

You need to pass it an unsigned-byte-8 vector.

ralcantaraperez commented 6 years ago

In the release 1.0.15 the function didn't raise an exception (it returned "^M"). The error condition raised now seems to be about accessing past the end of the vector.