diff options
author | Thomas Munro <tmunro@postgresql.org> | 2024-08-13 22:27:16 +1200 |
---|---|---|
committer | Thomas Munro <tmunro@postgresql.org> | 2024-08-13 22:34:53 +1200 |
commit | 35eeea62302260ec07fd11b287e488768d4543e2 (patch) | |
tree | d87f1f8947caebead60df4a62fed4c0e0ced6630 /src/backend/utils/adt/numeric.c | |
parent | 14c648ff009438830d15de7c8a93c2b29114eb1c (diff) | |
download | postgresql-35eeea62302260ec07fd11b287e488768d4543e2.tar.gz postgresql-35eeea62302260ec07fd11b287e488768d4543e2.zip |
Use thread-safe nl_langinfo_l(), not nl_langinfo().
This gets rid of some setlocale() calls. The remaining call to
setlocale() in pg_get_encoding_from_locale() is a query of the name
of the current locale when none was provided (in a multi-threaded future
that would need more work).
All known non-Windows targets have nl_langinfo_l(), from POSIX 2008, and
for Windows we already do something thread-safe.
Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi>
Discussion: https://postgr.es/m/CA%2BhUKGJqVe0%2BPv9dvC9dSums_PXxGo9SWcxYAMBguWJUGbWz-A%40mail.gmail.com
Diffstat (limited to 'src/backend/utils/adt/numeric.c')
0 files changed, 0 insertions, 0 deletions