Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004923OCamlOCaml generalpublic2009-11-18 00:552009-11-19 11:25
Reportergildor 
Assigned Toweis 
PrioritynormalSeveritymajorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version3.11.1 
Target VersionFixed in Version3.11.2+dev 
Summary0004923: Scanf.sscanf "%S" doesn't handle "\\xff"
DescriptionThe string "\xff" is valid, but cannot be parsed using Scanf.sscanf.

Step to reproduce:

# Scanf.sscanf "\"\\xef\\xbb\\xbf\"" "%S" (fun s -> s);;
Exception: Scanf.Scan_failure "scanf: bad input at char number 2: x".

Regards
Sylvain Le Gall
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0005173)
weis (developer)
2009-11-19 10:39

Thank you for the bug report: indeed the \x notation was not yet implemented in Scanf.
(0005174)
weis (developer)
2009-11-19 11:24

The fix will be available in the forthcoming 3.11.2 release.

- Issue History
Date Modified Username Field Change
2009-11-18 00:55 gildor New Issue
2009-11-19 10:39 weis Note Added: 0005173
2009-11-19 10:39 weis Description Updated
2009-11-19 10:40 weis Assigned To => weis
2009-11-19 10:40 weis Status new => assigned
2009-11-19 11:24 weis Note Added: 0005174
2009-11-19 11:24 weis Resolution open => fixed
2009-11-19 11:25 weis Status assigned => closed
2009-11-19 11:25 weis Fixed in Version => 3.11.2+dev


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker