You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 2384 Reporter: administrator Status: closed Resolution: fixed Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Mike Talbot
Version: 3.07+2
OS: Linux 2.4.25
Submission from: abg-dwalsh.abingdon.geoquest.slb.com (134.32.10.96)
Since upgrading from 3.06 (I think) I have found a problem with the following
piece of code:
while true do
Scanf.scanf " %u " (fun x ->())
done
If I run this program and enter a few numbers, followed by ^D (or just attach
stdin to /dev/null) I get the following error:
Exception:
Scanf.Scan_failure "scanf: bad input at char number 0: decimal digit".
However, if I replace the %u with %i and repeat the test I get the following
(expected) message:
Exception: End_of_file.
The text was updated successfully, but these errors were encountered:
Original bug ID: 2384
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Mike Talbot
Version: 3.07+2
OS: Linux 2.4.25
Submission from: abg-dwalsh.abingdon.geoquest.slb.com (134.32.10.96)
Since upgrading from 3.06 (I think) I have found a problem with the following
piece of code:
while true do
Scanf.scanf " %u " (fun x ->())
done
If I run this program and enter a few numbers, followed by ^D (or just attach
stdin to /dev/null) I get the following error:
Exception:
Scanf.Scan_failure "scanf: bad input at char number 0: decimal digit".
However, if I replace the %u with %i and repeat the test I get the following
(expected) message:
Exception: End_of_file.
The text was updated successfully, but these errors were encountered: