summaryrefslogtreecommitdiff
path: root/src/bin/psql/psql.c
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1999-01-27 01:18:23 +0000
committerMarc G. Fournier <scrappy@hub.org>1999-01-27 01:18:23 +0000
commit2ae5d51668a4599427a801da62313584ab565c38 (patch)
treef77d6bf5d0663e426839802c5af177018bdce8c4 /src/bin/psql/psql.c
parente27f8791f921d2a91a38ae329df88ceb4881d5ed (diff)
From: Tatsuo Ishii <t-ishii@sra.co.jp>
Included patches fix a portability problem of unsetenv() used in 6.4.2 multi-byte support. unsetenv() is only avaliable on FreeBSD and Linux so I decided to replace with putenv().
Diffstat (limited to 'src/bin/psql/psql.c')
-rw-r--r--src/bin/psql/psql.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bin/psql/psql.c b/src/bin/psql/psql.c
index 453d7ae7e11..cdd4c1d0d5d 100644
--- a/src/bin/psql/psql.c
+++ b/src/bin/psql/psql.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.166 1999/01/17 06:19:19 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.167 1999/01/27 01:18:21 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
@@ -1509,7 +1509,8 @@ do_connect(const char *new_dbname,
PGCLIENTENCODING value. -- 1998/12/12 Tatsuo Ishii */
if (!has_client_encoding) {
- unsetenv("PGCLIENTENCODING");
+ static const char ev[] = "PGCLIENTENCODING=";
+ putenv(ev);
}
#endif