digitalmars.D.bugs - [Issue 11231] New: formattedRead accepts silently trailing space past the string to match, but no other character
- d-bugmail puremagic.com (28/28) Oct 11 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11231
http://d.puremagic.com/issues/show_bug.cgi?id=11231 Summary: formattedRead accepts silently trailing space past the string to match, but no other character Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody puremagic.com ReportedBy: thelastmammoth gmail.com void main(){ string s = "abc:"; string a; import std.format; auto count=formattedRead(s, "%s: ", &a); //works but should throw exception: Cannot find character ` ' in the input string assert(a=="abc"); //NOTE: with any other character it seems to throw the exception, including "\n" and "\t" } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 11 2013