4 ms·
> All the formatting in {fmt} is locale-independent by default (which breaks with the C++’s tradition of having wrong defaults) Chuckles
by magnio 2y ago
> All the formatting in {fmt} is locale-independent by default (which breaks with the C++’s tradition of having wrong defaults)
Chuckles
- tialaramex 2y agoIt's really more of a committee thing - so we wouldn't necessarily expect fmt, a third party library, to have wrong defaults. Astoundingly, when this was standardised (as std::format for C++ 20) the committee didn't add back this mistake (which is present in numerous other parts of the standard). Which does give small hope for the proposers who plead with the committee to not make things unnecessarily worse in order to make C++ "consistent".
- formerly_proven 2y agoI'm filing a Defect Report about std::format disrespecting locale as we speak.
- arunc 2y agoHow/where do you do that?
- vitaut 2y agoYou send an email to the Library Working Group chair.
- johannes1234321 2y agoSee https://isocpp.org/std/submit-issue https://isocpp.org/std/submit-issue
- tialaramex 2y agoOf course, just because a defect is reported doesn't mean it'll get fixed, or that the fix will be of any use. The most famous (technically a C defect) is probably DR#260: https://www.open-std.org/jtc1/sc22/wg14/www/docs/dr_260.htm https://www.open-std.org/jtc1/sc22/wg14/www/docs/dr_260.htm
- ape4 2y agoYou can pass in a locale as a parameter. (Of course this doesn't fix the default)