Re: Remaining dependency on setlocale() - Mailing list pgsql-hackers

From Thomas Munro
Subject Re: Remaining dependency on setlocale()
Date
Msg-id CA+hUKG+V4SR5hW2yUEAbp7CADVn=1FZb=mE_tQkt5UsHYg9dJA@mail.gmail.com
Whole thread Raw
In response to Remaining dependency on setlocale()  (Jeff Davis <pgsql@j-davis.com>)
Responses Re: Remaining dependency on setlocale()
List pgsql-hackers
On Tue, Jul 8, 2025 at 1:14 PM Jeff Davis <pgsql@j-davis.com> wrote:
> v4-0008 uses LC_C_LOCALE, and I'm not sure if that's portable, but if
> the buildfarm complains then I'll fix it or revert it.

(Catching up with this thread...)

LC_C_LOCALE is definitely not portable: I've only seen it on macOS and
NetBSD.  It would be a good thing to propose to POSIX, since no other
approach can be retrofitted quite so cromulently...

I tried to make a portable PG_C_LOCALE mechanism like that, but it was
reverted for reasons needing more investigation... see
8e993bff5326b00ced137c837fce7cd1e0ecae14 (reverted by
3c8e463b0d885e0d976f6a13a1fb78187b25c86f).



pgsql-hackers by date:

Previous
From: Jacob Champion
Date:
Subject: Re: [PoC] Federated Authn/z with OAUTHBEARER
Next
From: Michael Paquier
Date:
Subject: Re: TransactionIdIsActive() has long been unused