summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorhobbs <hobbs>2005-10-05 08:02:19 (GMT)
committerhobbs <hobbs>2005-10-05 08:02:19 (GMT)
commit244bc931a8bd5bd2daf06b45906027f9035a5943 (patch)
treec1c8c1ac1b39ca562df88127c192f664a293833d /win
parent001484010656fc7ed52edb2c9a770f18cc7e6dc3 (diff)
downloadtcl-244bc931a8bd5bd2daf06b45906027f9035a5943.zip
tcl-244bc931a8bd5bd2daf06b45906027f9035a5943.tar.gz
tcl-244bc931a8bd5bd2daf06b45906027f9035a5943.tar.bz2
* win/tclWinPort.h: define USE_PUTENV_FOR_UNSET 1
* generic/tclEnv.c (TclSetEnv, TclUnsetEnv): add USE_PUTENV_FOR_UNSET to existing USE_PUTENV define to account for various systems that have putenv(), but can't unset env vars with it. Note difference between Windows and Linux for actually unsetting the env var (use of '='). Correct the resizing of the environ array. We assume that we are in full ownership, but that's not correct.[Bug 979640]
Diffstat (limited to 'win')
-rw-r--r--win/tclWinPort.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/win/tclWinPort.h b/win/tclWinPort.h
index c553ea6..47545ba 100644
--- a/win/tclWinPort.h
+++ b/win/tclWinPort.h
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclWinPort.h,v 1.36 2002/11/27 18:13:38 davygrvy Exp $
+ * RCS: @(#) $Id: tclWinPort.h,v 1.36.2.1 2005/10/05 08:02:20 hobbs Exp $
*/
#ifndef _TCLWINPORT
@@ -423,7 +423,8 @@
* the C level environment in synch with the system level environment.
*/
-#define USE_PUTENV 1
+#define USE_PUTENV 1
+#define USE_PUTENV_FOR_UNSET 1
/*
* Msvcrt's putenv() copies the string rather than takes ownership of it.