-
Notifications
You must be signed in to change notification settings - Fork 248
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
Use C++20 formatting library for concat()
?
#938
Comments
If we support a locale, shouldn't we use the same locale as libpq to avoid confusion? |
@tt4g I'd prefer not to, honestly, unless and until we're ready to support translation. Otherwise, numbers in error messages would suddenly come out localised (e.g. "3,000" in some locales but "3.000" in others etc.) but the localised numbers would show up in error messages that are still in the original English. That said, I would expect the C++ runtime system to pick up the same locale settings as the C runtime in libpq. So if you set |
I thought you wanted to localize the numeric format in error messages (you want to avoid that). |
That's good news. Thanks @tt4g. |
We now have a string formatting library, which should be exceedingly efficient at concatenating strings for exception messages and such.
My only concern really is that I'm not sure that I'd like to have locales applied to non-string items.
The text was updated successfully, but these errors were encountered: