Artifacts Associated With Ticket 524352ffffffffff
Ticket change [9fed141c59] (rid 96722) by jkbonfield on 2002-03-01 14:58:00:
- assignee initialized to: "hobbs"
- cmimetype initialized to: "text/plain"
- comment initialized to:
On MacOS X setting environment variables often failed if it required growing the environment space. The next array names, array get, or similar function would reset the environment variables back to an earlier set. Eg test with: set env(a) b array names env puts $env(a)
- foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "jkbonfield"
- subsystem initialized to: "08. Environment Variables"
- title initialized to: "Fix set env() on MacOS X"
- type initialized to: "Patch"
Ticket change [dc3d6aef24] (rid 108104) by jkbonfield on 2002-03-01 21:58:43:
- assignee changed to: "wolfsuit"
Ticket change [450c6f00c9] (rid 116814) by jkbonfield on 2002-03-01 22:01:03:
- icomment:
Logged In: YES user_id=154581 Sorry - I don't seem able to attach a file using IE on the Mac. Don't know why. Anyway here's the patch: *** tclEnv.c.orig Tue Feb 5 02:21:59 2002 --- tclEnv.c Fri Mar 1 14:52:08 2002 *************** *** 191,197 **** if (index == -1) { #ifndef USE_PUTENV if ((length + 2) > environSize) { ! char **newEnviron; newEnviron = (char **) ckalloc((unsigned) ((length + 5) * sizeof(char *))); --- 191,197 ---- if (index == -1) { #ifndef USE_PUTENV if ((length + 2) > environSize) { ! char **newEnviron, ***e; newEnviron = (char **) ckalloc((unsigned) ((length + 5) * sizeof(char *))); *************** *** 202,207 **** --- 202,209 ---- } environ = newEnviron; environSize = length + 5; + e = _NSGetEnviron(); + *e = environ; } index = length; environ[index + 1] = NULL; - login: "jkbonfield"
- mimetype: "text/plain"
- username: "jkbonfield"
- icomment:
Ticket change [acc7f543d8] (rid 101352) by davygrvy on 2002-03-13 17:18:08:
- icomment:
Logged In: YES user_id=7549 excellent. Another call for splitting the [sg]etenv stuff into platform specific parts :)
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [1da18f2641] (rid 90842) by das on 2002-06-07 02:09:19:
- assignee changed to: "das"
- closedate changed to: "2002-06-06T19:09:19"
- closer changed to: "das"
- icomment:
Logged In: YES user_id=90580 checked in a silightly improved patch adapted from this to the HEAD and core-8-3-1-branch
- login: "das"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "das"