Change wchar2char() and char2wchar() to accept a locale_t.
Jeff Davis <jdavis@postgresql.org>
Change wchar2char() and char2wchar() to accept a locale_t. These are libc-specific functions, so should require a locale_t rather than a pg_locale_t (which could use another provider). Discussion: https://postgr.es/m/a8666c391dfcabe79868d95f7160eac533ace718.camel%40j-davis.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/tsearch/ts_locale.c | modified | +2 −2 |
| src/backend/tsearch/wparser_def.c | modified | +1 −1 |
| src/backend/utils/adt/pg_locale_libc.c | modified | +12 −12 |
| src/include/utils/pg_locale.h | modified | +2 −2 |
Discussion
- Remaining dependency on setlocale() 94 messages · 2024-08-06 → 2026-01-27