Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2004-11-23
22:24 • Closed ticket [1043129fff]: file isdirectory (or join ?) bug plus 6 other ch... artifact: dfd19760fd user: vincentdarley
03:11 • Ticket [1043129fff]: 7 changes artifact: 715a781b35 user: hobbs
03:08 • Ticket [1043129fff]: 7 changes artifact: 1ce2d21500 user: vincentdarley
03:08 • Ticket [1043129fff]: 6 changes artifact: 70ac6a92dc user: vincentdarley
02:04 • Pending ticket [1043129fff]. artifact: 34750d902d user: hobbs
2004-11-22
19:53 • Ticket [1043129fff]: 2 changes artifact: d2808b4492 user: vincentdarley
19:53 • Closed ticket [1043129fff]. artifact: 9dff513d59 user: vincentdarley
2004-10-18
16:57 • Ticket [1043129fff]: 6 changes artifact: acf8d04da7 user: vincentdarley
2004-10-08
22:33 • Ticket [1043129fff]: 1 change artifact: 015468b67c user: dem
15:32 • New ticket [1043129fff]. artifact: 68cc30dd1d user: dem

file isdirectory (or join ?) bug

Closed / Fixed1043129fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2004-10-08 15:32:46
Hi,

I have a problem with file isdirectory command (Windows
2000 Professionnal,
not tested on other platforms) and I believe this is a
bug :
bug reported with ActiveTcl 8.4.6.1, 8.4.7.0, 8.5.0.0b2
there is no bug with an old 8.3 (I don't know if it's
an ActiveState
package...)

The bug ===>

set p "C:\\toto"
puts [file join $p toto]
puts [file isdirectory $p]
puts [file join $p toto]

==> output :
C:/toto/toto
0
C:\toto/toto

same result if the directory exists except 0 => 1

There aren't any reasons the 2 file join give different
results...

Thanks in advance for explanations and bug fix,

Julien

PS: for the moment in our application I'll make a copy
of the filename
before call file isdirectory... :
file isdirectory $f
'll be changed to
set tmp ""
append tmp "$f"
file isdirectory $tmp
dem Ticket [1043129fff]: 1 change [History diff]2004-10-08 22:33:50
vincentdarleyplain2004-10-18 16:57:49
Logged In: YES 
user_id=32170

This buglet was introduced by some of the filesystem
optimization. It's relatively harmless, but does need fixing.
vincentdarleyplain2004-11-22 19:53:14
Logged In: YES 
user_id=32170

Thanks - fixed in cvs head.
vincentdarley Ticket [1043129fff]: 2 changes [History diff]2004-11-22 19:53:15
hobbsplain2004-11-23 02:04:23
Logged In: YES 
user_id=72656

What about 8.4 branch?
vincentdarleyplain2004-11-23 03:08:53
Logged In: YES 
user_id=32170

Exactly the same patch can be applied around line 4779 of
tclIOUtil.c.  Not sure if it's too late for 8.4.8.
vincentdarleyplain2004-11-23 03:08:59
Logged In: YES 
user_id=32170

Exactly the same patch can be applied around line 4779 of
tclIOUtil.c.  Not sure if it's too late for 8.4.8.
hobbsplain2004-11-23 03:11:16
Logged In: YES 
user_id=72656

Too late for 8.4.8, but go ahead and apply anyway.  Thanks.
vincentdarleyplain2004-11-23 22:24:03
Logged In: YES 
user_id=32170

Fixed in 8-4 branch.
Log in (anonymous is fine) to add a comment.