|
2006-08-21
| ||
| 10:55 | • Closed ticket [930530ffff]: env-multiple FAILED env variables plus 8 other c... artifact: 814666d313 user: das | |
|
2004-10-17
| ||
| 00:52 | • Ticket [930530ffff]: 4 changes artifact: 789b41e706 user: breakermike | |
|
2004-05-18
| ||
| 03:02 | • Ticket [930530ffff]: 4 changes artifact: 6f5bc3b14d user: tauvan | |
|
2004-05-12
| ||
| 03:09 | • Ticket [930530ffff]: 1 change artifact: 2899f76b5c user: hobbs | |
| 03:05 | • Ticket [930530ffff]: 4 changes artifact: 600f834189 user: tauvan | |
|
2004-05-08
| ||
| 03:13 | • Ticket [930530ffff]: 4 changes artifact: 791df39759 user: tauvan | |
|
2004-04-06
| ||
| 18:49 | • New ticket [930621ffff] unixInit-2.8 FAILED absolute pathtype. artifact: 93ff691bf7 user: tauvan | |
| 16:02 | • New ticket [930530ffff] env-multiple FAILED env variables. artifact: 3e6321ef4d user: tauvan | |
env-multiple FAILED env variables
Closed / Out of Date930530ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 20 years ago
Descriptionplain2004-04-06 16:02:50
as local only (notRoot)
machine: mac ppc G4 (1st PCI 400Mhz) OSX 10.1.5
for additional info see:
[910323] 20 failures with 8.4.6 on MacOS X 10.3, many env
related
---- Result was:
__CF_USER_TEXT_ENCODING=0x1F5:0:0
---- Result should have been (exact matching):
==== env-2.1 FAILED
---- Result was:
NAME1=test string
__CF_USER_TEXT_ENCODING=0x1F5:0:0
---- Result should have been (exact matching):
NAME1=test string
==== env-2.2 FAILED
---- Result was:
NAME1=test string
NAME2=more
__CF_USER_TEXT_ENCODING=0x1F5:0:0
---- Result should have been (exact matching):
NAME1=test string
NAME2=more
==== env-2.3 FAILED
---- Result was:
NAME1=test string
NAME2=more
XYZZY=garbage
__CF_USER_TEXT_ENCODING=0x1F5:0:0
---- Result should have been (exact matching):
NAME1=test string
NAME2=more
XYZZY=garbage
==== env-2.4 FAILED
---- Result was:
NAME1=test string
NAME2=new value
XYZZY=garbage
__CF_USER_TEXT_ENCODING=0x1F5:0:0
---- Result should have been (exact matching):
NAME1=test string
NAME2=new value
XYZZY=garbage
==== env-3.1 FAILED
---- Result was:
NAME1=test string
XYZZY=garbage
__CF_USER_TEXT_ENCODING=0x1F5:0:0
---- Result should have been (exact matching):
NAME1=test string
XYZZY=garbage
==== env-4.1 FAILED
---- Result was:
XYZZY=garbage
__CF_USER_TEXT_ENCODING=0x1F5:0:0
---- Result should have been (exact matching):
XYZZY=garbage
==== env-4.2 FAILED
---- Result was:
__CF_USER_TEXT_ENCODING=0x1F5:0:0
§=¶
---- Result should have been (exact matching):
§=¶
==== env-4.3 FAILED
---- Result was:
__CF_USER_TEXT_ENCODING=0x1F5:0:0
§=§
---- Result should have been (exact matching):
§=§
==== env-4.4 FAILED
---- Result was:
__CF_USER_TEXT_ENCODING=0x1F5:0:0
¶=§
---- Result should have been (exact matching):
¶=§
==== env-4.5 FAILED
support data:
when from shell(SHELL=/bin/tcsh) "env"
both local and root have "__CF_USER_TEXT_ENCODING=
0x1F5:0:0"
unset env($name) removes everything
prior to tests "PATH" is added
in "proc getenv" prior to "exec" only "PATH"
when running "printenvScript" prior to any executions
as local ONLY "__CF_USER_TEXT_ENCODING" is added to env
my conclusion:
OSX has a bug or tcsh does, my bet is on the OSX.
possible solution:
add to "printenvScript":
if {$tcl_platform(os) == "Darwin"} {
lrem names __CF_USER_TEXT_ENCODING
}
Thanks;
Steven
tauvanplain2004-05-08 03:13:12
Logged In: YES user_id=1011552 New info: I created a file "printenv" which I renamed "printenv2" to make sure no conflict with printenv. From tclsh shell: % exec /Users/steven/Desktop/tclproj/build/tcltest /Users/steven/ Desktop/tclproj/build/printenv2 Result: Exact match to test result. No __CF_USER_TEXT_ENCODING. Could this be a result of "catch"? I keep looking, but if I'm missing something please let me know.
tauvanplain2004-05-12 03:05:32
Logged In: YES user_id=1011552 More info: the error depends on the location of unset env($name). if unset is outside the script an error occurs if unset is placed inside the script no error
hobbs Ticket [930530ffff]: 1 change
[History diff]2004-05-12 03:09:51
tauvanplain2004-05-18 03:02:50
Logged In: YES
user_id=1011552
More info: unset env($name) outside printenvScript
These are based on what is inside test:
if foreach ... puts "$p=$env($p)" ok
if exec /bin/tcsh << env ok
if exec /...../build/tcltest << $printenvScript
returns __CF_USER_TEXT_ENCODING=0x1F5:0:0
if exec /bin/sh << env
returns ...HOME, PWD, LOGNAME, SHLVL, _
Not sure what's happening in execvp may have to do
with environ
Default shell is /bin/tcsh
Any pointers you may have would help.
breakermikeplain2004-10-17 00:52:24
Logged In: YES
user_id=1140576
for tcl8.4.7 on Mac OS X 10.2.8 in order to pass the tests/env.test
script
re: __CF_USER_TEXT_ENCODING
this appears to be introduced into the env by the OS so removing it
in the test sounds right. I have not traced where it comes from.
re: other vars in tests/env.test
in order to properly load "dylib" files after the DYLD_LIBRARY_PATH
envar is set in the Makefile test target, it needs to be passed to the
children; one way as follows (in file tests/env.test)
*** 107,109 ****
# ('saved' env vars)
! foreach name {TCL_LIBRARY PATH LD_LIBRARY_PATH LIBPATH
DISPLAY SHLIB_PATH} {
if {[info exists env2($name)]} {
--- 114,117 ----
# ('saved' env vars)
! ## add DYLD_LIBRARY_PATH for macosx
! foreach name {TCL_LIBRARY PATH LD_LIBRARY_PATH
DYLD_LIBRARY_PATH LIBPATH DISPLAY SHLIB_PATH} {
if {[info exists env2($name)]} {
Then, it needs to be excluded in printenvScript - so the resulting diff
***************
*** 77,78 ****
--- 77,85 ----
}
+
+ if {$tcl_platform(os) == "Darwin"} {
+ ## take these out for macosx
+ lrem names DYLD_LIBRARY_PATH
+ lrem names __CF_USER_TEXT_ENCODING
+ }
+
foreach name {TCL_LIBRARY PATH LD_LIBRARY_PATH LIBPATH
PURE_PROG_NAME DISPLAY SHLIB_PATH } {
dasplain2006-08-21 10:55:29
Logged In: YES user_id=90580 fixed long ago
Log in (anonymous is fine) to add a comment.