Join GitHub today
Issue with Scanf.Scanning.from_file #4119
Original bug ID: 4119
(Reported on behalf of users at Athys.)
The following program dies with a Sys_error("Bad file descriptor") exception,
------------- program --------------
let _ =
Comment author: @pierreweis
Thanks for the bug report. This was due to interaction between mandatory closing of the input channel to the file and the end of file test condition.
The bug is corrected and a corresponding regression test has been added to the library test suite.