Re: Remaining dependency on setlocale()

Поиск
Список
Период
Сортировка
От Jeff Davis
Тема Re: Remaining dependency on setlocale()
Дата
Msg-id cdd20efc0f5418c597791a1e3a5abb68fa3ce35b.camel@j-davis.com
обсуждение исходный текст
Ответ на Re: Remaining dependency on setlocale()  (Thomas Munro <thomas.munro@gmail.com>)
Ответы Re: Remaining dependency on setlocale()
Список pgsql-hackers
On Fri, 2025-07-11 at 11:48 +1200, Thomas Munro wrote:
> On Fri, Jul 11, 2025 at 6:22 AM Jeff Davis <pgsql@j-davis.com> wrote:
> > I don't have a great windows development environment, and it
> > appears CI
> > and the buildfarm don't offer great coverage either. Can I ask for
> > a
> > volunteer to do the windows side of this work?
>
> Me neither but I'm willing to help with that, and have done lots of
> closely related things through trial-by-CI...

Attached a patch to separate the message translation (both gettext and
strerror translations) from setlocale(). That's a step towards thread
safety, and also a step toward setting LC_CTYPE=C permanently (more
work still required there).

The patch feels a bit over-engineered, but I'd like to know what you
think. It would be great if you could test/debug the windows NLS-
enabled paths.

I'm also not sure what to do about the NetBSD path. NetBSD has no
uselocale(), so I have to fall bad to temporary setlocale(), which is
not thread safe. And I'm getting a mysterious error in test_aio for
NetBSD, which I haven't investigated yet.

Regards,
    Jeff Davis


Вложения

В списке pgsql-hackers по дате отправления: