-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fmt::print() does not honor locale? #305
Comments
Thanks for a nice feedback.
>>> from locale import setlocale, LC_ALL
>>> '{}'.format(1234567)
'1234567'
>>> setlocale(LC_ALL, 'en_US.utf8')
'en_US.utf8'
>>> '{}'.format(1234567)
'1234567'
>>> '{:n}'.format(1234567)
'1,234,567' I've implemented the std::setlocale(LC_ALL, "en_US.utf8");
fmt::print("cppformat: {:n}\n", 1234567); |
Hi @vitaut, sorry if I missed something, it seems like the I'd be happy to create a PR for updating the documentation, but I'm not confident I can give a good enough description of it. So could you please add it in? |
The |
Ah I see, thanks. |
Thank you for cppformat. It's awesome.
Is it possible to get cppformat to honor the current locale?
The text was updated successfully, but these errors were encountered: