summaryrefslogtreecommitdiffstats
path: root/generic/tclEnv.c
diff options
context:
space:
mode:
authordas <das@noemail.net>2002-06-06 17:37:53 (GMT)
committerdas <das@noemail.net>2002-06-06 17:37:53 (GMT)
commit0169185447797fd3b79b57f8bb26e360172fa9a7 (patch)
treed8383cffd57ba9b2bb95730e80227456889d0387 /generic/tclEnv.c
parent3fd915eaabce30e863288c4c203ff1f0fbd48a33 (diff)
downloadtcl-0169185447797fd3b79b57f8bb26e360172fa9a7.zip
tcl-0169185447797fd3b79b57f8bb26e360172fa9a7.tar.gz
tcl-0169185447797fd3b79b57f8bb26e360172fa9a7.tar.bz2
* unix/tclUnixThrd.c (TclpReaddir, TclpLocaltime, TclpGmtime):
added mutex wrapped calls to readdir, localtime & gmtime in case their thread-safe *_r counterparts are not available. * unix/tcl.m4: added configure check for readdir_r * unix/tcl.m4 (Darwin): set TCL_DEFAULT_ENCODING to utf-8 on MacOSX (where posix file apis expect utf-8, not iso8859-1). * unix/configure: regen * unix/Makefile.in: set DYLD_LIBRARY_PATH in parallel to LD_LIBRARY_PATH for MacOSX dynamic linker. * generic/tclEnv.c (TclSetEnv): fix env var setting on MacOSX (adapted from patch #524352 by jkbonfield). FossilOrigin-Name: fcf531e83ad667b26d746b22ea80a85cae244c40
Diffstat (limited to 'generic/tclEnv.c')
-rw-r--r--generic/tclEnv.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/generic/tclEnv.c b/generic/tclEnv.c
index 9dd1c6e..0f71547 100644
--- a/generic/tclEnv.c
+++ b/generic/tclEnv.c
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclEnv.c,v 1.14 2002/04/03 08:39:27 vincentdarley Exp $
+ * RCS: @(#) $Id: tclEnv.c,v 1.15 2002/06/06 17:37:55 das Exp $
*/
#include "tclInt.h"
@@ -200,6 +200,12 @@ TclSetEnv(name, value)
}
environ = newEnviron;
environSize = length + 5;
+#if defined(__APPLE__) && defined(__DYNAMIC__)
+ {
+ char ***e = _NSGetEnviron();
+ *e = environ;
+ }
+#endif
}
index = length;
environ[index + 1] = NULL;