1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-12 21:01:52 +03:00

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().
This commit is contained in:
Marc G. Fournier
1999-01-27 01:18:23 +00:00
parent e27f8791f9
commit 2ae5d51668
4 changed files with 9 additions and 11 deletions

View File

@ -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