Allow pg_locale_t APIs to work when ctype_is_c.
Jeff Davis <jdavis@postgresql.org>
Allow pg_locale_t APIs to work when ctype_is_c. Previously, the caller needed to check ctype_is_c first for some routines and not others. Now, the APIs consistently work, and the caller can just check ctype_is_c for optimization purposes. Discussion: https://postgr.es/m/450ceb6260cad30d7afdf155d991a9caafee7c0d.camel@j-davis.com Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/pg_locale.c | modified | +76 −6 |
| src/backend/utils/adt/pg_locale_libc.c | modified | +6 −0 |
Discussion
- Remaining dependency on setlocale() 94 messages · 2024-08-06 → 2026-01-27