summaryrefslogtreecommitdiffstats
path: root/generic/tclEnv.c
diff options
context:
space:
mode:
authordas <das>2002-06-06 17:37:54 (GMT)
committerdas <das>2002-06-06 17:37:54 (GMT)
commit7710d5c62d5217f563468a0e595c9f71240f351b (patch)
treed8383cffd57ba9b2bb95730e80227456889d0387 /generic/tclEnv.c
parenta119012d510f0e38f924f4c957718b8fd98dee41 (diff)
downloadtcl-7710d5c62d5217f563468a0e595c9f71240f351b.zip
tcl-7710d5c62d5217f563468a0e595c9f71240f351b.tar.gz
tcl-7710d5c62d5217f563468a0e595c9f71240f351b.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).
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;