mirror of
https://github.com/postgres/postgres.git
synced 2025-12-09 02:08:45 +03:00
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
This commit is contained in:
@@ -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_ */
|
||||
|
||||
Reference in New Issue
Block a user