Fix harmless LC_COLLATE[_MASK] confusion.

Thomas Munro <tmunro@postgresql.org>

Commit: 2724ff381a161eb030a1fcd2a6346679d74db420
Author: Thomas Munro <tmunro@postgresql.org>
Date: 2024-08-19T10:12:55Z
Releases: 18.0
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