postgresql/src
Tom Lane b124104e73 Fix Utils.pm's locale-munging so that Perl itself is also affected.
Utils.pm has a BEGIN block that editorializes on the locale-related
environment variables, primarily in order to stabilize the behavior
of child programs.  It turns out that if the calling test script
has already done "use locale", this fails to affect the behavior
of Perl itself, causing locale behavior to be different between
Perl and child programs.  That breaks commit cd82e5c79's attempt
to deal with locale-specific behavior in psql.

To fix, we just need to call setlocale() to redo the calculation
of locale.

Per report from Aleksander Alekseev.  No back-patch for now, since
there are no locale-dependent TAP tests in prior branches, and
I'm not yet convinced that this won't have side-effects of its own.

Discussion: https://postgr.es/m/CAJ7c6TO9KpYYxoVVseWEQB5KtjWDkt8NfyAeKPcHoe2Jq+ykpw@mail.gmail.com
2023-04-18 13:31:46 -04:00
..
backend Fix pg_basebackup with in-place tablespaces some more. 2023-04-18 11:23:34 -04:00
bin Fix pg_basebackup with in-place tablespaces some more. 2023-04-18 11:23:34 -04:00
common Introduce PG_IO_ALIGN_SIZE and align all I/O buffers. 2023-04-08 16:34:50 +12:00
fe_utils Revert refactoring of restore command code to shell_restore.c 2023-02-06 08:28:42 +09:00
include Fix some typos and some incorrectly duplicated words 2023-04-18 14:03:49 +12:00
interfaces ecpg: Fix handling of strings in ORACLE compat code with SQLDA 2023-04-18 11:20:41 +09:00
makefiles meson: Make auto the default of the ssl option 2023-03-13 07:04:11 +01:00
pl Harmonize some more function parameter names. 2023-04-13 10:15:20 -07:00
port Fix various typos 2023-04-18 13:23:23 +12:00
template Use unnamed POSIX semaphores on Cygwin. 2023-01-06 10:33:28 +13:00
test Fix Utils.pm's locale-munging so that Perl itself is also affected. 2023-04-18 13:31:46 -04:00
timezone Fix outdated references to guc.c 2023-03-02 13:49:39 +01:00
tools Fix some typos and some incorrectly duplicated words 2023-04-18 14:03:49 +12:00
tutorial Remove useless casts to (void *) in arguments of some system functions 2023-02-07 06:57:59 +01:00
.gitignore
DEVELOPERS
Makefile Integrate pg_bsd_indent into our build/test infrastructure. 2023-02-12 12:22:21 -05:00
Makefile.global.in Update Unicode data to CLDR 43 2023-04-13 22:10:08 +02:00
Makefile.shlib autoconf: Rely on ar supporting index creation 2022-10-07 11:53:39 -07:00
meson.build Integrate pg_bsd_indent into our build/test infrastructure. 2023-02-12 12:22:21 -05:00
nls-global.mk Fix for make unportability 2022-07-13 09:15:01 +02:00