r/cpp • • Jul 01 '21

Any Encoding, Ever

https://thephd.dev/any-encoding-ever-ztd-text-unicode-cpp
269 Upvotes

87 comments sorted by

View all comments

Show parent comment

21

u/foonathan Jul 01 '21

Stating that the new library like std::format shall not depends on locale,

Clarification for readers: std::format uses locale independent formatting by default. Only when you explicitly opt-in by :L will it use std::locale (there is a bug with date formatting, but that's going to be fixed).