sb-impl:read-from-c-string/* report undecodable octets incorrectly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Fix Released
|
Medium
|
Unassigned |
Bug Description
(cffi:with-
(sb-impl:
gives the error:
c-string decoding error (:external-format :ASCII):
the octet sequence 1 cannot be decoded.
[Condition of type SB-INT:
expected something describing the octets that could not be decoded (#xff in this case) rather than always 1
(cffi:with-
(sb-impl:
produces
c-string decoding error (:external-format :UTF-8):
the octet sequence 4 cannot be decoded.
[Condition of type SB-INT:
the '4' in the error message varies from 1 to 4 depending on the octet sequence, but still doesn't not show the actual octets
tested on "1.0.45.13", x8664 linux
Looks like there's confusion re. meaning of DECODE-BREAK-REASON in the source.