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:21:06 +0000 (22:21 +1200)
commit1cc73d15ea58ddc15f91269493811cef99987cb8
tree12541b989b35fb85f449d78acbb621b4a981d7bf
parentb7935bc10b78f3a44567d304df87fad3d53102dd
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