textfile: result of ioresult
Original Reporter info from Mantis: Yogi
-
Reporter name: Joachim Paepke
Original Reporter info from Mantis: Yogi
- Reporter name: Joachim Paepke
Description:
Attached a simplified project
It creates an empty textfile, closes it and reads it
First time it reads in the state {$i-}
Using readln on the empty file ( Reading past eof) causes NO error and ioresult is 0
Second time the same in the state {$i-}: No runtime error and ioresult=0
According to http://www.freepascal.org/docs-html/rtl/system/readln.html the program should either end with a runtime error in {$i+} or ioresult should be <>0 in {$i-}
Mantis conversion info:
- Mantis ID: 17918
- OS: Debian Linux
- OS Build: 2.6.26-2-686
- Build: SVN 16151
- Platform: i386
- Version: 2.5.1
- Fixed in version: 2.4.4
- Fixed in revision: 732 (#9eb6c3f6)
- Target version: 3.0.0