Re: Remaining dependency on setlocale()
От | Joe Conway |
---|---|
Тема | Re: Remaining dependency on setlocale() |
Дата | |
Msg-id | 57a3f214-41bc-4954-ac09-8eae039137e8@joeconway.com обсуждение исходный текст |
Ответ на | Re: Remaining dependency on setlocale() (Jeff Davis <pgsql@j-davis.com>) |
Ответы |
Re: Remaining dependency on setlocale()
Re: Remaining dependency on setlocale() |
Список | pgsql-hackers |
On 8/7/24 13:16, Jeff Davis wrote: > On Wed, 2024-08-07 at 19:07 +1200, Thomas Munro wrote: >> How far can we get by using more _l() functions? > > There are a ton of calls to, for example, isspace(), used mostly for > parsing. > > I wouldn't expect a lot of differences in behavior from locale to > locale, like might be the case with iswspace(), but behavior can be > different at least in theory. > > So I guess we're stuck with setlocale()/uselocale() for a while, unless > we're able to move most of those call sites over to an ascii-only > variant. 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 -- Joe Conway PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com
В списке pgsql-hackers по дате отправления: