summaryrefslogtreecommitdiff
path: root/src/bin/psql/stringutils.c
diff options
context:
space:
mode:
authorTatsuo Ishii2000-01-15 05:38:50 +0000
committerTatsuo Ishii2000-01-15 05:38:50 +0000
commitb32c092f9bf26de25b9b7ed5eacb4d6863ea0c87 (patch)
treecf4f6424094467407ec45b752eaa7c9dfcfbec3b /src/bin/psql/stringutils.c
parent0d7cfc7b35bdeadea9a7ff6ec51682903f044ffb (diff)
Adapt to the changes of libpq(eliminateing using putenv()).
Diffstat (limited to 'src/bin/psql/stringutils.c')
-rw-r--r--src/bin/psql/stringutils.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bin/psql/stringutils.c b/src/bin/psql/stringutils.c
index 8473fd1394..1421cf1360 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