Hacker News new | ask | show | jobs
by tialaramex 660 days ago
It'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".

2 comments

You can pass in a locale as a parameter. (Of course this doesn't fix the default)
I'm filing a Defect Report about std::format disrespecting locale as we speak.
How/where do you do that?
Of 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

You send an email to the Library Working Group chair.