mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-17 19:30:00 +08:00
Fix harmless LC_COLLATE[_MASK] confusion.
Commitca051d8b10
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, whereca051d8b10
landed.
This commit is contained in:
parent
56d23855c8
commit
2724ff381a
@ -1755,7 +1755,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 =
|
||||
|
Loading…
Reference in New Issue
Block a user