bad external-format decoding error for invalid ascii

Bug #985505 reported by Nikodemus Siivola
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
SBCL
Fix Released
Medium
Unassigned

Bug Description

> export FOO='fäöå'
[nikodemus@delirium:~]
> LANG=C sbcl --no-userinit
This is SBCL 1.0.56.23.master.1-3416545, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses. See the CREDITS and COPYING files in the
distribution for more information.
* (posix-environ)

debugger invoked on a SB-INT:C-STRING-DECODING-ERROR in thread
#<THREAD "initial thread" RUNNING {10036C8F33}>:
  c-string decoding error (:external-format :ASCII):
    the octet sequence 1 cannot be decoded.

Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
  0: [ABORT] Exit debugger, returning to top level.

(SB-INT:C-STRING-DECODING-ERROR :ASCII 1)
0]

Changed in sbcl:
assignee: nobody → Nikodemus Siivola (nikodemus)
status: Triaged → In Progress
Revision history for this message
Nikodemus Siivola (nikodemus) wrote :

commit 3f3033a6c0ddf0af8dd1b5a17c2a4b82ea59b94f
Author: Nikodemus Siivola <email address hidden>
Date: Thu Apr 19 13:41:28 2012 +0300

    correct octets in c-string decoding errors

      Also add SAP-REF-OCTETS for grabbing a vector of bytes from
      memory. We'll need it elsewhere as well.

      Fixes lp#985505

Changed in sbcl:
assignee: Nikodemus Siivola (nikodemus) → nobody
status: In Progress → Fix Committed
Revision history for this message
Nikodemus Siivola (nikodemus) wrote :

in SBCL 1.0.57

Changed in sbcl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.