diff options
author | Tatsuo Ishii <ishii@postgresql.org> | 2000-01-15 05:38:50 +0000 |
---|---|---|
committer | Tatsuo Ishii <ishii@postgresql.org> | 2000-01-15 05:38:50 +0000 |
commit | bfbd58ce131c527d04911dac59feaf28876cf4cf (patch) | |
tree | 74f43028cefc4253e133b0317305691684a1d36d /src/bin/psql/stringutils.c | |
parent | 8fc386a2d830c94dbf990e97297cb9ae75fa4453 (diff) | |
download | postgresql-bfbd58ce131c527d04911dac59feaf28876cf4cf.tar.gz postgresql-bfbd58ce131c527d04911dac59feaf28876cf4cf.zip |
Adapt to the changes of libpq(eliminateing using putenv()).
Diffstat (limited to 'src/bin/psql/stringutils.c')
-rw-r--r-- | src/bin/psql/stringutils.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bin/psql/stringutils.c b/src/bin/psql/stringutils.c index 8473fd13944..1421cf13608 100644 --- a/src/bin/psql/stringutils.c +++ b/src/bin/psql/stringutils.c @@ -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 |