D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 21738 - std.format.spec: singleSpec should throw on "%%"
Summary: std.format.spec: singleSpec should throw on "%%"
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: All All
: P1 minor
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-20 09:22 UTC by Berni44
Modified: 2021-03-23 15:02 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Berni44 2021-03-20 09:22:45 UTC
singleSpec checks the format specifier and throws if it is invalid, but forgets to throw on %%.
Comment 1 Dlang Bot 2021-03-20 22:41:47 UTC
@wolframw created dlang/phobos pull request #7894 "Issue 21738 - std.format.spec: singleSpec should throw on "%%"" mentioning this issue:

- Issue 21738 - std.format.spec: singleSpec should throw on "%%"

https://github.com/dlang/phobos/pull/7894
Comment 2 Dlang Bot 2021-03-23 15:02:45 UTC
dlang/phobos pull request #7894 "Fix Issue 21738 - std.format.spec: singleSpec should throw on "%%"" was merged into master:

- 68c7e183d41413c95b37f2e9cf03efa6791bab4c by wolframw:
  Fix Issue 21738 - std.format.spec: singleSpec should throw on "%%"

https://github.com/dlang/phobos/pull/7894