Re: Remaining dependency on setlocale()

Поиск
Список
Период
Сортировка
От Jeff Davis
Тема Re: Remaining dependency on setlocale()
Дата
Msg-id 45fcc802c66fdf52f4420b8cbe09e4fe26cd84fe.camel@j-davis.com
обсуждение исходный текст
Ответ на Re: Remaining dependency on setlocale()  (Joe Conway <mail@joeconway.com>)
Ответы Re: Remaining dependency on setlocale()
Список pgsql-hackers
On Wed, 2024-08-07 at 13:28 -0400, Joe Conway wrote:
> FWIW I see all of these in glibc:
>
> isalnum_l, isalpha_l, isascii_l, isblank_l, iscntrl_l, isdigit_l,
> isgraph_l,  islower_l, isprint_l, ispunct_l, isspace_l, isupper_l,
> isxdigit_l

My point was just that there are a lot of those call sites (especially
for isspace()) in various parsers. It feels like a lot of code churn to
change all of them, when a lot of them seem to be intended for ascii
anyway.

And where do we get the locale_t structure from? We can create our own
at database connection time, and supply it to each of those call sites,
but I'm not sure that's a huge advantage over just using uselocale().

Regards,
    Jeff Davis




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