Summary

"(read-string #f)" from console does not detect EOF correctly

Metadata

Attachments

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.

Changes and comments

[2012-09-06 11:19:31 UTC] felix attached handle-eof-in-read-string.diff (description=Possible fix)

[2012-09-29 19:40:03 UTC] sjamaan changed status from new to closed

[2012-09-29 19:40:03 UTC] sjamaan set resolution to fixed

[2012-09-29 19:40:03 UTC] sjamaan wrote:

Fixed by 4e5ba39639abe206f2e8cf0e2a7647d00e759562