Reported by Yoshinori Tahara.
in sb-bsd-sockets.
* bug fix: if COMPILE-FILE aborts due to an unwind, the partial
fasl is now deleted. (reported by Attila Lendvai)
+ * bug fix: READ-LINE always returned NIL for the last line in files.
+ (reported by Yoshinori Tahara)
* fixed some bugs revealed by Paul Dietz' test suite:
** NIL is a valid function name (regression at 1.0.13.38)
** FILL on lists was missing its return value (regression at 1.0.12.27)
:start2 %frc-index% :end2 pos)
(setf %frc-index% (1+ pos)))
(done-with-fast-read-char)
- (return-from ansi-stream-read-line-from-frc-buffer res)))
+ (return-from ansi-stream-read-line-from-frc-buffer (values res (null pos)))))
(add-chunk ()
(let* ((end (length %frc-buffer%))
(len (- end %frc-index%))
(with-open-stream (stream (make-synonym-stream '*stream*))
(assert (input-stream-p stream))))
-
+;;; READ-LINE on ANSI-STREAM did not return T for the last line
+;;; (reported by Yoshinori Tahara)
+(let ((pathname "test-read-line-eol"))
+ (with-open-file (out pathname :direction :output :if-exists :supersede)
+ (format out "a~%b"))
+ (let ((result (with-open-file (in pathname)
+ (list (multiple-value-list (read-line in nil nil))
+ (multiple-value-list (read-line in nil nil))
+ (multiple-value-list (read-line in nil nil))))))
+ (delete-file pathname)
+ (assert (equal result '(("a" nil) ("b" t) (nil t))))))
+\f
;;; success
;;; 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".)
-"1.0.17.33"
+"1.0.17.34"