summaryrefslogtreecommitdiff
path: root/src
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:22:20 +1200
commitf1707c5f4f647e58ba299af3750d24f6d3b00cd6 (patch)
tree59e058285e68357bcadabe30ecf360490a142561 /src
parentb3bb1e24b62c664dae694bfae6b409ac2b0aad3d (diff)
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.
Diffstat (limited to 'src')
-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 453af401cab..b81b9442d85 100644
--- a/src/backend/utils/adt/pg_locale.c
+++ b/src/backend/utils/adt/pg_locale.c
@@ -1680,7 +1680,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 =