aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Munro <tmunro@postgresql.org>2024-08-19 21:21:03 +1200
committerThomas Munro <tmunro@postgresql.org>2024-08-19 22:12:55 +1200
commit2724ff381a161eb030a1fcd2a6346679d74db420 (patch)
tree12bfb95812e2727bb67c84f8ba0bd9311a74189b
parent56d23855c864b7384970724f3ad93fb0fc319e51 (diff)
downloadpostgresql-2724ff381a161eb030a1fcd2a6346679d74db420.tar.gz
postgresql-2724ff381a161eb030a1fcd2a6346679d74db420.zip
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.
-rw-r--r--src/backend/utils/adt/pg_locale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/utils/adt/pg_locale.c b/src/backend/utils/adt/pg_locale.c
index cd3661e7279..48b7e16d81b 100644
--- a/src/backend/utils/adt/pg_locale.c
+++ b/src/backend/utils/adt/pg_locale.c
@@ -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 =