summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorhobbs <hobbs@noemail.net>2005-10-05 08:02:18 (GMT)
committerhobbs <hobbs@noemail.net>2005-10-05 08:02:18 (GMT)
commit2827440392e957e1c14562f11f19baf059e6c6be (patch)
treec1c8c1ac1b39ca562df88127c192f664a293833d /win
parent40be8ba3fdd79741c1fb7288f0887b93ef0f781e (diff)
downloadtcl-2827440392e957e1c14562f11f19baf059e6c6be.zip
tcl-2827440392e957e1c14562f11f19baf059e6c6be.tar.gz
tcl-2827440392e957e1c14562f11f19baf059e6c6be.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] FossilOrigin-Name: bb8bbfd313a53585dc5ff09eb60b466fbac2e298
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.