Fix harmless LC_COLLATE[_MASK] confusion.

Thomas Munro <tmunro@postgresql.org>

Commit: c1bb534bae431f4bbc50abf471507457e1b24efc
Author: Thomas Munro <tmunro@postgresql.org>
Date: 2024-08-19T10:21:59Z
Releases: 15.9
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.

Files

PathChange+/−
src/backend/utils/adt/pg_locale.c modified +1 −1