October 12, 2013 [Issue 11231] New: formattedRead accepts silently trailing space past the string to match, but no other character | ||||
---|---|---|---|---|
| ||||
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 --- Comment #0 from thelastmammoth@gmail.com 2013-10-11 20:06:02 PDT --- 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: ------- |
Copyright © 1999-2021 by the D Language Foundation