Fix harmless LC_COLLATE[_MASK] confusion.
authorThomas Munro <tmunro@postgresql.org>
Mon, 19 Aug 2024 09:21:03 +0000 (21:21 +1200)
committerThomas Munro <tmunro@postgresql.org>
Mon, 19 Aug 2024 10:12:55 +0000 (22:12 +1200)
commit2724ff381a161eb030a1fcd2a6346679d74db420
tree12bfb95812e2727bb67c84f8ba0bd9311a74189b
parent56d23855c864b7384970724f3ad93fb0fc319e51
Fix harmless LC_COLLATE[_MASK] confusion.

Commit ca051d8b101 called newlocale(LC_COLLATE, ...) instead of
newlocale(LC_COLLATE_MASK, ...), in code reached only on FreeBSD.  They
have the same value on that OS, explaining why it worked.  Fix.

Back-patch to 14, where ca051d8b101 landed.
src/backend/utils/adt/pg_locale.c