From bfbd58ce131c527d04911dac59feaf28876cf4cf Mon Sep 17 00:00:00 2001 From: Tatsuo Ishii Date: Sat, 15 Jan 2000 05:38:50 +0000 Subject: Adapt to the changes of libpq(eliminateing using putenv()). --- src/bin/psql/stringutils.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/bin/psql/stringutils.c') 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 -- cgit v1.2.3