From 2ae5d51668a4599427a801da62313584ab565c38 Mon Sep 17 00:00:00 2001 From: "Marc G. Fournier" Date: Wed, 27 Jan 1999 01:18:23 +0000 Subject: From: Tatsuo Ishii 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(). --- src/bin/psql/psql.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/bin/psql/psql.c') 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 -- cgit v1.2.3