Skip to content

Commit b8362d4

Browse files
author
Neil Conway
committed
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>
1 parent d9d2ca8 commit b8362d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/interfaces/libpgtcl/pgtcl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
*
1212
* IDENTIFICATION
13-
* $PostgreSQL: pgsql/src/interfaces/libpgtcl/pgtcl.c,v 1.30 2004/01/07 18:56:29 neilc Exp $
13+
* $PostgreSQL: pgsql/src/interfaces/libpgtcl/pgtcl.c,v 1.31 2004/02/02 00:35:08 neilc Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
@@ -47,7 +47,7 @@ Pgtcl_Init(Tcl_Interp *interp)
4747
*/
4848
Tcl_GetDouble(interp, Tcl_GetVar(interp, "tcl_version", TCL_GLOBAL_ONLY), &tclversion);
4949
if (tclversion >= 8.1)
50-
putenv("PGCLIENTENCODING=UNICODE");
50+
Tcl_PutEnv("PGCLIENTENCODING=UNICODE");
5151

5252
/* register all pgtcl commands */
5353
Tcl_CreateCommand(interp,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy