diff options
author | Jeff Davis | 2025-07-09 15:45:34 +0000 |
---|---|---|
committer | Jeff Davis | 2025-07-09 15:45:34 +0000 |
commit | 53cd0b71ee2e99c611a38ce58636a04d5dde4cc1 (patch) | |
tree | 81248733f226d1bdd6a84229d0051694f204528b /src/include | |
parent | 9dcc7641444f6a99269b446ee3a45a080b6ceea3 (diff) |
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
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/utils/pg_locale.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/utils/pg_locale.h b/src/include/utils/pg_locale.h index 1cd7c76a0a7..931f5b3b880 100644 --- a/src/include/utils/pg_locale.h +++ b/src/include/utils/pg_locale.h @@ -214,8 +214,8 @@ extern void report_newlocale_failure(const char *localename); /* These functions convert from/to libc's wchar_t, *not* pg_wchar_t */ extern size_t wchar2char(char *to, const wchar_t *from, size_t tolen, - pg_locale_t locale); + locale_t loc); extern size_t char2wchar(wchar_t *to, size_t tolen, - const char *from, size_t fromlen, pg_locale_t locale); + const char *from, size_t fromlen, locale_t loc); #endif /* _PG_LOCALE_ */ |