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)

handle-eof-in-read-string.diff (689 bytes) - added by felix winkelmann 12 years ago.
Possible fix

Download all attachments as: .zip

Change History (2)

Changed 12 years ago by felix winkelmann

Possible fix

comment:1 Changed 12 years ago by sjamaan

Resolution: fixed
Status: newclosed

Fixed by 4e5ba39639abe206f2e8cf0e2a7647d00e759562

Note: See TracTickets for help on using tickets.