1
0
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:
Tatsuo Ishii
2000-01-15 05:38:50 +00:00
parent 8fc386a2d8
commit bfbd58ce13
9 changed files with 59 additions and 50 deletions

View File

@ -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