Fix test failures when language environment is not UTF-8.

Jeff Davis <jdavis@postgresql.org>

Commit: e2a235767180941eef8887240ddace1a021f04e3
Author: Jeff Davis <jdavis@postgresql.org>
Date: 2024-04-04T23:10:12Z
Releases: 17.0
Fix test failures when language environment is not UTF-8.

For tests that depend on UTF-8 encoding, force LC_COLLATE=C and
LC_CTYPE=C to avoid an encoding mismatch.

Reported-by: Thomas Munro
Discussion: https://postgr.es/m/CA+hUKGK-ZqV1njkG_=xcCqXh2fcMkz85FTMnhS2opm4ZerH=xw@mail.gmail.com

Files

PathChange+/−
src/bin/initdb/t/001_initdb.pl modified +2 −0
src/bin/scripts/t/020_createdb.pl modified +2 −0

Discussion