Fix harmless LC_COLLATE[_MASK] confusion.

Thomas Munro <tmunro@postgresql.org>

Commit: 1cc73d15ea58ddc15f91269493811cef99987cb8
Author: Thomas Munro <tmunro@postgresql.org>
Date: 2024-08-19T10:21:06Z
Releases: 17.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