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

Commitb8362d4

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 MichaelBrusser <michael@synchronicity.com>
1 parentd9d2ca8 commitb8362d4

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)

[8]ページ先頭

©2009-2025 Movatter.jp