postgresql/src
Thomas Munro 35eeea6230 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
2024-08-13 22:34:53 +12:00
..
backend Use errmsg_internal for debug messages 2024-08-13 10:01:49 +02:00
bin All POSIX systems have langinfo.h and CODESET. 2024-08-13 22:13:52 +12:00
common Remove fe_memutils from libpgcommon_shlib 2024-08-12 08:30:39 +02:00
fe_utils Improve file header comments for astramer code. 2024-08-07 08:49:41 -04:00
include All POSIX systems have langinfo.h and CODESET. 2024-08-13 22:13:52 +12:00
interfaces libpq: Trace frontend authentication challenges 2024-08-12 19:12:54 -04:00
makefiles Add -Wmissing-variable-declarations to the standard compilation flags 2024-08-03 11:51:02 +02:00
pl Fix edge case in plpgsql's make_callstmt_target(). 2024-08-07 12:54:39 -04:00
port Use thread-safe nl_langinfo_l(), not nl_langinfo(). 2024-08-13 22:34:53 +12:00
template Remove AIX support 2024-02-28 15:17:23 +04:00
test Log more info when wait-for-catchup tests time out. 2024-08-12 13:18:36 -04:00
timezone Update time zone data files to tzdata release 2024a. 2024-02-01 15:57:53 -05:00
tools Rename bbstreamer to astreamer. 2024-08-05 09:56:25 -04:00
tutorial Update copyright for 2024 2024-01-03 20:49:05 -05:00
.gitignore
DEVELOPERS
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
Makefile.global.in Add -Wmissing-variable-declarations to the standard compilation flags 2024-08-03 11:51:02 +02:00
Makefile.shlib Remove AIX support 2024-02-28 15:17:23 +04:00
meson.build Update copyright for 2024 2024-01-03 20:49:05 -05:00
nls-global.mk Remove distprep 2023-11-06 15:18:04 +01:00