-
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::format_to_n with locale ':L' does not work correctly #1782
Comments
Fixed in b17d5c4. Thanks for reporting! |
Hi vitaut, Could you please make a patch to 7.0.1 for walking around the issue?. Thanks. |
I plan to make another patch release shortly. |
Thanks for your effort. |
Did you update the fix to tags/7.0.2 or just to "master"? I have not found the way to test your fix. |
|
I tried 7.0.3 locale still not working for float number. e.g. if I set language as "italian". when print out decimal point, it prints as "." instead of "," |
#include <fmt/core.h>
#include <locale>
int main() {
std::locale::global(std::locale("it_IT.UTF-8"));
fmt::print("{:L}\n", 4.2);
} prints
|
I try to print a float number with precision like |
Please open a separate issue. |
I have the issue since I upgraded fmt to version 1.7.1 and built to dll.
In versions before 1.7.x I use "{:n}" for grouping numbers without any issue. Please take a look to the code below for details.
The text was updated successfully, but these errors were encountered: