Skip to content

Commit f1707c5

Browse files
committed
Fix harmless LC_COLLATE[_MASK] confusion.
Commit ca051d8 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 ca051d8 landed.
1 parent b3bb1e2 commit f1707c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/utils/adt/pg_locale.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1680,7 +1680,7 @@ get_collation_actual_version(char collprovider, const char *collcollate)
16801680
locale_t loc;
16811681

16821682
/* Look up FreeBSD collation version. */
1683-
loc = newlocale(LC_COLLATE, collcollate, NULL);
1683+
loc = newlocale(LC_COLLATE_MASK, collcollate, NULL);
16841684
if (loc)
16851685
{
16861686
collversion =

0 commit comments

Comments
 (0)