X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fexternal-formats%2Fmb-util.lisp;h=5569a9fcac02fb3585296547644475f9d431e083;hb=0f3a5f2e8886d18d0b4f6485c38a42be629422ae;hp=9a82d45557a9a127cbf0f425a05be51c0731aa90;hpb=388f043377acc98ef40d4e1445c09fb2c3b168e6;p=sbcl.git diff --git a/src/code/external-formats/mb-util.lisp b/src/code/external-formats/mb-util.lisp index 9a82d45..5569a9f 100644 --- a/src/code/external-formats/mb-util.lisp +++ b/src/code/external-formats/mb-util.lisp @@ -254,7 +254,9 @@ ;; replacement character, so we hardcode the preferred ;; replacement here. #\? - (mb-char-len (or (,ucs-to-mb (char-code byte)) -1)) + (block size + (mb-char-len (or (,ucs-to-mb (char-code byte)) + (return-from size 0)))) (let ((mb (,ucs-to-mb bits))) (if (null mb) (external-format-encoding-error stream byte)