multibyte character encoding errors hit SB-INT:BUG
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Reported by Jianshi Huang on sbcl-bugs for EUC-JP.
Test-case:
(with-open-file (f "/tmp/foo"
(write-string (make-string 1 :initial-element #\horizontal_bar) f))
causes:
can't happen
This is probably a bug in SBCL itself. (Alternatively, SBCL
might have been corrupted by bad user code, e.g. by an undefined
Lisp operation like (FMAKUNBOUND 'COMPILE), or by stray pointers
from alien code or from unsafe Lisp code; or there might be a
bug in the OS or hardware that SBCL is running on.) If it seems
to be a bug in SBCL itself, the maintainers would like to know
about it. Bug reports are welcome on the SBCL mailing lists,
which you can find at <http://
[Condition of type SB-INT:BUG]
The issue appears to be that if there is no representation for the character,
at line 259 in mb-util.lisp calls MB-CHAR-LEN with -1, which it isn't prepared to handle.
Changed in sbcl: | |
status: | Confirmed → In Progress |
Changed in sbcl: | |
assignee: | nobody → Nikodemus Siivola (nikodemus) |
tags: | added: pending |
Changed in sbcl: | |
status: | Fix Committed → Fix Released |
Attached patch fixes this, but I cannot commit it right now due to Sourceforge SSH problems.