summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorhobbs <hobbs>2005-10-05 08:03:35 (GMT)
committerhobbs <hobbs>2005-10-05 08:03:35 (GMT)
commit44e8c0a01c0a4104585a07493094db8366e7ccc8 (patch)
tree5bde422719d3a328094434e639f02b3dc73a6223 /win
parenta7c1a3d607d3f3a9645ac43c6de183e49693111a (diff)
downloadtcl-44e8c0a01c0a4104585a07493094db8366e7ccc8.zip
tcl-44e8c0a01c0a4104585a07493094db8366e7ccc8.tar.gz
tcl-44e8c0a01c0a4104585a07493094db8366e7ccc8.tar.bz2
* tests/env.test (env-6.1):
* 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 1263e12..4c11208 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.44 2005/06/01 11:00:36 dkf Exp $
+ * RCS: @(#) $Id: tclWinPort.h,v 1.45 2005/10/05 08:03:35 hobbs Exp $
*/
#ifndef _TCLWINPORT
@@ -445,7 +445,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.