www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - remaining std.format bugs

reply Bruno Haible <bruno clisp.org> writes:
Hi,

2 out of the 4 bugs regarding format string processing in the 
std.format package are still open:
   - https://github.com/dlang/phobos/issues/10711
   - https://github.com/dlang/phobos/issues/10712

Their impact is not only that
   - some format strings written according to the D documentation 
https://dlang.org/library/std/format.html produce an exception at 
runtime,

but also that

   - the format string checking in 'msgfmt -c' (which is based on 
the D documentation) may consider some format strings as valid 
that will produce an exception at runtime.
Oct 03
next sibling parent reply monkyyy <crazymonkyyy gmail.com> writes:
On Friday, 3 October 2025 at 23:03:21 UTC, Bruno Haible wrote:
 2 out of the 4 bugs
neither should be fixed
Oct 03
parent Kapendev <alexandroskapretsos gmail.com> writes:
On Friday, 3 October 2025 at 23:05:51 UTC, monkyyy wrote:
 On Friday, 3 October 2025 at 23:03:21 UTC, Bruno Haible wrote:
 2 out of the 4 bugs
neither should be fixed
I kinda agree. Some extra info or docs about this would be enough.
Nov 06
prev sibling parent Tom Knox <potbmooosander gmail.com> writes:
On Friday, 3 October 2025 at 23:03:21 UTC, Bruno Haible wrote:
 Hi,
 2 out of the 4 bugs regarding format string processing in the 
 std.format package are still open:
   - https://github.com/dlang/phobos/issues/10711
   - https://github.com/dlang/phobos/issues/10712
   - https://mrflip.org
 Their impact is not only that
   - some format strings written according to the D 
 documentation https://dlang.org/library/std/format.html produce 
 an exception at runtime,

 but also that

   - the format string checking in 'msgfmt -c' (which is based 
 on the D documentation) may consider some format strings as 
 valid that will produce an exception at runtime.
It’s important to be aware that these bugs affect both runtime behavior and format string validation in tools like 'msgfmt -c'. Hopefully, the maintainers will address these soon to improve reliability and consistency with the documentation.
Nov 04