aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNeil Conway <neilc@samurai.com>2004-02-02 01:00:58 +0000
committerNeil Conway <neilc@samurai.com>2004-02-02 01:00:58 +0000
commita2b5cc81df606057f85a4a1577a29aaeccda76a7 (patch)
treefbbf21d1f42c40c2641c76c6ab21541e2a80c635 /src
parent871e56709d7610d59d375933ad8e592204337017 (diff)
downloadpostgresql-a2b5cc81df606057f85a4a1577a29aaeccda76a7.tar.gz
postgresql-a2b5cc81df606057f85a4a1577a29aaeccda76a7.zip
Use Tcl_PutEnv() in place of putenv() in libpgtcl, as the latter can
apparently corrupt the Tcl runtime. Per suggestion from Michael Brusser <michael@synchronicity.com>
Diffstat (limited to 'src')
-rw-r--r--src/interfaces/libpgtcl/pgtcl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/libpgtcl/pgtcl.c b/src/interfaces/libpgtcl/pgtcl.c
index fd01187aa79..38bbd8271f4 100644
--- a/src/interfaces/libpgtcl/pgtcl.c
+++ b/src/interfaces/libpgtcl/pgtcl.c
@@ -10,7 +10,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtcl.c,v 1.28 2003/08/04 02:40:16 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtcl.c,v 1.28.4.1 2004/02/02 01:00:58 neilc Exp $
*
*-------------------------------------------------------------------------
*/
@@ -47,7 +47,7 @@ Pgtcl_Init(Tcl_Interp *interp)
*/
Tcl_GetDouble(interp, Tcl_GetVar(interp, "tcl_version", TCL_GLOBAL_ONLY), &tclversion);
if (tclversion >= 8.1)
- putenv("PGCLIENTENCODING=UNICODE");
+ Tcl_PutEnv("PGCLIENTENCODING=UNICODE");
/* register all pgtcl commands */
Tcl_CreateCommand(interp,