[Issue 6925] Thousands grouping syntax in writef?

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Feb 7 07:48:31 UTC 2021


https://issues.dlang.org/show_bug.cgi?id=6925

--- Comment #4 from Berni44 <bugzilla at bernis-buecher.de> ---
(In reply to Andrei Alexandrescu from comment #3)
> A way to keep purity with locales would be to pass the locale into the
> functions, e.g.
> 
> writef(mylocale, "%.2,f", 1234567.89);

Sure, but it would make the functions much more complicated - for example think
of different digit shapes used in some areas of the world or even printing from
right to left (what's the minus-flag supposed to do in that case?)... I'd
prefer to have localization in a wrapper in a different module.

--


More information about the Digitalmars-d-bugs mailing list