bad external-format decoding error for invalid ascii

Bug #985505 reported by Nikodemus Siivola on 2012-04-19
This bug affects 2 people
Affects Status Importance Assigned to Milestone

Bug Description

> export FOO='fäöå'
> LANG=C sbcl --no-userinit
This is SBCL, an implementation of ANSI Common Lisp.
More information about SBCL is available at <>.

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.


Changed in sbcl:
assignee: nobody → Nikodemus Siivola (nikodemus)
status: Triaged → In Progress
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
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  Edit
Everyone can see this information.

Other bug subscribers