The decimal point character for the chrono type 'S' seems to be locale-independent, contrary to what the docs says. Reproduced at https://godbolt.org/z/TKxcq5hf6.
From the docs:
The character for the decimal point is localized according to the locale. The modified command %OS produces the locale's alternative representation.
Relevant code (I think):
|
fmt::format_to(std::back_inserter(buf), FMT_STRING("{:.{}f}"), |
The decimal point character for the chrono type
'S'seems to be locale-independent, contrary to what the docs says. Reproduced at https://godbolt.org/z/TKxcq5hf6.From the docs:
Relevant code (I think):
fmt/include/fmt/chrono.h
Line 1148 in 3135421
fmt/include/fmt/chrono.h
Line 1153 in 3135421
fmt/include/fmt/chrono.h
Line 1195 in 3135421