Skip to content
Tcl Source Code View Ticket
Login

View Ticket

unixInit-2.10 case sensitive

Closed / Fixed948177ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 23 years ago
Descriptionplain2004-05-05 03:28:07
machine: mac ppc G4 (1st PCI 400Mhz) OSX 10.1.5
source: core-8-4-branch
see bug#947440 for additional info

error occurs when running from command line instead of
make -C ....

initial conditions:
~/Desktop/c84bcopy and  ~/desktop/c84bcopy are same 
directory

results:
[localhost:~/Desktop/c84bcopy] steven% ./build/tcl/tcltest ./tcl/
tests/all.tcl
no errors
[localhost:~/Desktop/c84bcopy] steven% cd ~/desktop/c84bcopy
[localhost:~/desktop/c84bcopy] steven% ./build/tcl/tcltest ./tcl/
tests/all.tcl
==== unixInit-2.10 TclpInitLibraryPath: executable relative 
FAILED
---- Result was:
/Users/steven/Desktop/c84bcopy/tmp/sparkly/library /Users/
steven/Desktop/c84bcopy/tmp/library
---- Result should have been (exact matching):
/Users/steven/desktop/c84bcopy/tmp/sparkly/library /Users/
steven/desktop/c84bcopy/tmp/library
==== unixInit-2.10 FAILED

Don Porter points out [makeDirectory] does
not normalize the path it returns
dgpplain2004-05-06 03:36:05
Logged In: YES 
user_id=80530

The mismatch here is that
[temporaryDIrectory] returns
a normalized path, but the
components of $tcl_libPath
are apparently not.
dgpplain2004-05-06 04:41:00
Logged In: YES 
user_id=80530


Fixing this by adding
normalization to the test.
(attached patch committed
for 8.4.7 and 8.5a2)

Normalizing $tcl_libPath
seems impractical; it's a
direct copy of TclGetLibraryPath()
which is constructed early in
startup when normalizing isn't yet
feasible.  (See the hubbub over
Bug 832657)

When the Great Rewrite of Tcl
initialization is done, think about
this again.
dgp Ticket [948177ffff]: 2 changes [History diff]2004-05-06 04:41:01
dgpplain2004-05-06 04:41:03
File Added - 86206: 948177.patch
Log in (anonymous is fine) to add a comment.

Attachments: