Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit ec7ddc1

Browse files
committed
Use portable putenv(), not unportable setenv().
1 parent 220ae48 commit ec7ddc1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/interfaces/libpgtcl/pgtcl.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
*
1212
* IDENTIFICATION
13-
* $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtcl.c,v 1.22 2001/09/10 14:49:12 momjian Exp $
13+
* $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtcl.c,v 1.23 2001/09/17 00:42:42 tgl Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
@@ -45,7 +45,8 @@ Pgtcl_Init(Tcl_Interp *interp)
4545
* Therefore PGCLIENTENCODING must be set to UNICODE for these versions.
4646
*/
4747
Tcl_GetDouble(interp, Tcl_GetVar(interp, "tcl_version", TCL_GLOBAL_ONLY), &tclversion);
48-
if (tclversion >= 8.1) setenv("PGCLIENTENCODING", "UNICODE", 1);
48+
if (tclversion >= 8.1)
49+
putenv("PGCLIENTENCODING=UNICODE");
4950

5051
/* register all pgtcl commands */
5152
Tcl_CreateCommand(interp,

0 commit comments

Comments
 (0)