Change wchar2char() and char2wchar() to accept a locale_t.
authorJeff Davis <jdavis@postgresql.org>
Wed, 9 Jul 2025 15:45:34 +0000 (08:45 -0700)
committerJeff Davis <jdavis@postgresql.org>
Wed, 9 Jul 2025 15:45:34 +0000 (08:45 -0700)
commit53cd0b71ee2e99c611a38ce58636a04d5dde4cc1
tree81248733f226d1bdd6a84229d0051694f204528b
parent9dcc7641444f6a99269b446ee3a45a080b6ceea3
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: http://postgr.es/m/a8666c391dfcabe79868d95f7160eac533ace718.camel%40j-davis.com
src/backend/tsearch/ts_locale.c
src/backend/tsearch/wparser_def.c
src/backend/utils/adt/pg_locale_libc.c
src/include/utils/pg_locale.h