OEF blocking is not correct behaviour
Original Reporter info from Mantis: tiger
-
Reporter name:
Original Reporter info from Mantis: tiger
- Reporter name:
Description:
re closed #6879 (closed)
I don't think the current behaviour is correct.
It is simply impossible to determine whether or not you are at the end of a stream/file without trying to read from it.
The Turbo Pascal implementation of this was always an immediate return. What was tested was whether a file read had ALREADY hit an EOF condition .
EOF does not need to read the file/pipe and should not be doing so. It is a status check not a read operation.
If fpc does the same this will remove the blocking issue.
The doc was correct in the first place. John bug report was correct.
This is a compiler bug, not a doc bug.
Mantis conversion info:
- Mantis ID: 21175
- OS: linux
- Platform: PC
- Version: 2.4.2