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: 6791 Reporter: milanst Assigned to:@gasche Status: closed (set by @xavierleroy on 2016-12-07T10:47:17Z) Resolution: fixed Priority: normal Severity: minor Version: 4.02.1 Category: standard library Monitored by:@hcarty
Bug description
There is a scanf regression where @c doesn't stop scanning for every character 'c'. In particular, it seems it is broken when character is a valid format specifier.
Benoît Vaugon wrote a patch to fix this, I'll upload it here for reference. It looks good, I'd like a testsuite occurence of the issue, which I will probably add when the patch is merged.
Original bug ID: 6791
Reporter: milanst
Assigned to: @gasche
Status: closed (set by @xavierleroy on 2016-12-07T10:47:17Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 4.02.1
Category: standard library
Monitored by: @hcarty
Bug description
There is a scanf regression where @c doesn't stop scanning for every character 'c'. In particular, it seems it is broken when character is a valid format specifier.
Steps to reproduce
utop # Scanf.sscanf "some-thing{1..3}" "%s@{%d..%d}" (fun s n1 n2 -> s,n1,n2);;
Exception: End_of_file.
But this works:
utop # Scanf.sscanf "some-thingI{1..3}" "%s@I{%d..%d}" (fun s n1 n2 ->
s,n1,n2);;
I haven't tried but apparently both work fine in 4.01.
File attachments
The text was updated successfully, but these errors were encountered: