-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Localized formatting is always decimal #3693
Comments
This is the {fmt} repository, please report issues with |
Thank you for clearing this up, but perhaps this is confusing... The bug is with {fmt}, not std::format(). |
Missed the call to |
BTW, could you elaborate why you need localized formatting of hexadecimal numbers? What is the use case? |
Yes, of course. I work with FPGAs, and it's convenient to print out register values in hexadecimal format, separated by apostrophes:
My understanding is that this should print: |
Sorry, I forgot to pass |
This has been fixed but in general it's a misuse of the locale API and I'd recommend defining a custom formatter for a wrapper type instead. |
Localization doesn't seem to obey the 'type' specifier:
yields:
75BCD15 123456789
This is using tip of trunk {fmt} and GCC 13.1.0.
The text was updated successfully, but these errors were encountered: