inconsistent RTE generation for reading input from an unopened file in mode ISO
Original Reporter info from Mantis: kays @KaiBurghardt
-
Reporter name: Kai Burghardt
Original Reporter info from Mantis: kays @KaiBurghardt
- Reporter name: Kai Burghardt
Description:
Reading a number or a character from an unopened file either generate RTE 106 (Invalid numeric format) or RTE 6 (Invalid file handle) or RTE 103 (File not open), depending on whether it is input
or any other file and whether it is a numeric or non-numeric destination variable.
Steps to reproduce:
{$mode ISO}
program isoModeReadingNumbers(input, output);
var
i: integer;
begin
readLn(i);
end.
Run the program (possibly forcing that no FD are opened): ./isoModeReadingNumbers <&- >&-
This will emit a “Invalid numeric format” RTE, which is “sort of” wrong.