Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitec7ddc1

Browse files
committed
Use portable putenv(), not unportable setenv().
1 parent220ae48 commitec7ddc1

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)

[8]ページ先頭

©2009-2025 Movatter.jp