[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-janitors] #915: "(read-string #f)" from console does not detect
From: |
Chicken Trac |
Subject: |
[Chicken-janitors] #915: "(read-string #f)" from console does not detect EOF correctly |
Date: |
Thu, 06 Sep 2012 07:25:25 -0000 |
#915: "(read-string #f)" from console does not detect EOF correctly
-------------------------------------+--------------------------------------
Reporter: felix | Owner: felix
Type: defect | Status: new
Priority: major | Milestone: 4.9.0
Component: unknown | Version: 4.8.x
Keywords: read-string eof console |
-------------------------------------+--------------------------------------
For example:
csi -e '(read-string #f)'
will read input forever and the input can not be terminated via C-d.
Apparently `fast_read_string_from_file()` resets the EOF status (using
`clearerr()`) which will continue reading when reading from the console.
--
Ticket URL: <http://bugs.call-cc.org/ticket/915>
Chicken Scheme <http://www.call-with-current-continuation.org/>
Chicken Scheme is a compiler for the Scheme programming language.
- [Chicken-janitors] #915: "(read-string #f)" from console does not detect EOF correctly,
Chicken Trac <=