From a038f05ae04c6a152722a2cc5263f4d9cb63a50e Mon Sep 17 00:00:00 2001
From: ram <ram>
Date: Wed, 16 Mar 1994 11:35:08 +0000
Subject: [PATCH] Tweak read-line to work better on a non-persistent EOF (e.g.
 ^D on TTY)

---
 code/stream.lisp | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/code/stream.lisp b/code/stream.lisp
index 2257ba2e9..93de1c26e 100644
--- a/code/stream.lisp
+++ b/code/stream.lisp
@@ -7,7 +7,7 @@
 ;;; Scott Fahlman or slisp-group@cs.cmu.edu.
 ;;;
 (ext:file-comment
-  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/stream.lisp,v 1.19 1993/03/12 21:05:38 wlott Exp $")
+  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/stream.lisp,v 1.20 1994/03/16 11:35:08 ram Exp $")
 ;;;
 ;;; **********************************************************************
 ;;;
@@ -275,8 +275,9 @@
 		 (incf index))
 		((zerop index)
 		 (done-with-fast-read-char)
-		 (return (funcall (stream-in stream) stream
-				  eof-errorp eof-value)))
+		 (return (eof-or-lose stream eof-errorp eof-value)))
+		;; since fast-read-char hit already the eof char, we
+	        ;; shouldn't do another read-char
 		(t
 		 (done-with-fast-read-char)
 		 (return (values (shrink-vector res index) t)))))))))
-- 
GitLab