get-char now raises an error if the string port is closed (bug 245959)

This commit is contained in:
Abdulaziz Ghuloum 2008-07-07 01:22:12 -07:00
parent f6957b91c2
commit 749080724c
2 changed files with 3 additions and 1 deletions

View File

@ -1007,6 +1007,8 @@
;;; returns #t if port is eof, #f otherwise
(unless (input-port? p)
(die who "not an input port" p))
(when ($port-closed? p)
(die who "port is closed" p))
(let ([tr ($port-transcoder p)])
(unless tr
(die who "not a textual port" p))

View File

@ -1 +1 @@
1531
1532