Fix harmless LC_COLLATE[_MASK] confusion.

Commit ca051d8b10 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 ca051d8b10 landed.
This commit is contained in:
Thomas Munro 2024-08-19 21:21:03 +12:00
parent 4247575c63
commit c1bb534bae
1 changed files with 1 additions and 1 deletions

View File

@ -1722,7 +1722,7 @@ get_collation_actual_version(char collprovider, const char *collcollate)
locale_t loc;
/* Look up FreeBSD collation version. */
loc = newlocale(LC_COLLATE, collcollate, NULL);
loc = newlocale(LC_COLLATE_MASK, collcollate, NULL);
if (loc)
{
collversion =