0.8.18.29:
authorChristophe Rhodes <csr21@cam.ac.uk>
Thu, 13 Jan 2005 11:07:23 +0000 (11:07 +0000)
committerChristophe Rhodes <csr21@cam.ac.uk>
Thu, 13 Jan 2005 11:07:23 +0000 (11:07 +0000)
Fix READ-FROM-STRING's second return value on displaced strings.
(PFD ansi-tests)

NEWS
src/code/reader.lisp
version.lisp-expr

diff --git a/NEWS b/NEWS
index d6f00f4..9df9311 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -38,6 +38,8 @@ changes in sbcl-0.8.19 relative to sbcl-0.8.18:
   * fixed some bugs revealed by Paul Dietz' test suite:
     ** the FORMATTER-generated functions for ~V[ conditionals require
        the correct number of arguments.
+    ** READ-FROM-STRING returns the mandated second value when applied
+       to displaced strings.
 
 changes in sbcl-0.8.18 relative to sbcl-0.8.17:
   * new feature: reloading changed shared object files with
index f4352e6..8391d6d 100644 (file)
    will take effect."
   (declare (string string))
   
-  (with-array-data ((string string)
+  (with-array-data ((string string :offset-var offset)
                    (start start)
                    (end (%check-vector-sequence-bounds string start end)))
     (unless *read-from-string-spares*
          (values (if preserve-whitespace
                      (read-preserving-whitespace stream eof-error-p eof-value)
                      (read stream eof-error-p eof-value))
-                 (string-input-stream-current stream))
+                 (- (string-input-stream-current stream) offset))
        (push stream *read-from-string-spares*)))))
 \f
 ;;;; PARSE-INTEGER
index 5f7a6f4..ef84804 100644 (file)
@@ -17,4 +17,4 @@
 ;;; checkins which aren't released. (And occasionally for internal
 ;;; versions, especially for internal versions off the main CVS
 ;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
-"0.8.18.28"
+"0.8.18.29"