ISO mode file reading error
Original Reporter info from Mantis: hellotiger
-
Reporter name:
Original Reporter info from Mantis: hellotiger
- Reporter name:
Description:
Open a typed binary file and try to read its contents after seeking to a new position. It works in the default mode but fails in the ISO mode. In ISO mode, the first read() call always reads the first element of the file, ignoring the seek() operation. The second read() call gets the element at the correct position.
Steps to reproduce:
- Download the attached Pascal source file and the test data file.
- Compile the source using the default mode. Result:
File size: 11
File position: 9
57
10
- Compile the source with -Miso switch to use ISO mode. Result:
File size: 11
File position: 9
48
57
Mantis conversion info:
- Mantis ID: 34848
- OS: Debian Linux
- OS Build: 9
- Platform: X86-64
- Version: 3.0.4
- Fixed in version: 3.3.1
- Fixed in revision: 40850 (#dd072ce7), 43188 (#b0247046)
- Monitored by: » @KaiBurghardt (Kai Burghardt)