mirror of
https://github.com/postgres/postgres.git
synced 2025-07-03 20:02:46 +03:00
Adapt to the changes of libpq(eliminateing using putenv()).
This commit is contained in:
@ -41,7 +41,8 @@ strtokx(const char *s,
|
||||
const char *quote,
|
||||
char escape,
|
||||
char *was_quoted,
|
||||
unsigned int *token_pos)
|
||||
unsigned int *token_pos,
|
||||
int encoding)
|
||||
{
|
||||
static char *storage = NULL;/* store the local copy of the users
|
||||
* string here */
|
||||
@ -93,7 +94,7 @@ strtokx(const char *s,
|
||||
for (p = start;
|
||||
*p && (*p != *cp || *(p - 1) == escape);
|
||||
#ifdef MULTIBYTE
|
||||
p += PQmblen(p)
|
||||
p += PQmblen(p, encoding)
|
||||
#else
|
||||
p++
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user