Opened 12 years ago
Closed 12 years ago
#915 closed defect (fixed)
"(read-string #f)" from console does not detect EOF correctly
Reported by: | felix winkelmann | Owned by: | felix winkelmann |
---|---|---|---|
Priority: | major | Milestone: | 4.9.0 |
Component: | unknown | Version: | 4.8.x |
Keywords: | read-string eof console | Cc: | sjamaan |
Estimated difficulty: |
Description
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.
Attachments (1)
Change History (2)
Changed 12 years ago by
Attachment: | handle-eof-in-read-string.diff added |
---|
comment:1 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed by 4e5ba39639abe206f2e8cf0e2a7647d00e759562
Note: See
TracTickets for help on using
tickets.
Possible fix