Skip to content
Tcl Source Code View Ticket
Login

View Ticket

tk_chooseDirectory returns nonexistent dir with -mustexist 1

Closed / Fixed1309218fffffffffffffffffffffffffffffffffCreated 21 years agoUpdated 21 years ago
Descriptionplain2005-09-30 07:06:49
While working with the "last" tclkit 8.5a2 I found the
following behaviour (found in tcl 8.4.11 too):

# I use tk_chooseDirectory with the option -mustexist == 1.
# The dialog tells me if a directory does not exists,
but if I
# select cancel afterwards, than the non-existing
directory is
# returned instead of an empty string

% pwd
c:/program files/tcl/bin
% set dir [tk_chooseDirectory -mustexist 1]
c:/dummy
% file exists $dir
0
dkf Ticket [1309218fff]: 2 changes [History diff]2005-09-30 15:44:42
dkfplain2005-09-30 17:05:42
Logged In: YES 
user_id=79902

I can duplicate this on WinXP with 8.4.7 (I know I should
upgrade)

This is a Tk bug (and so is invalid in the context of the
Tcl tracker) but it is a Tk bug that matters. Assigning to
the mainainer of the Windows dialogs.
hobbsplain2005-10-05 10:52:15
Logged In: YES 
user_id=72656

Fixed in 8.4.12 and 8.5a4.
Log in (anonymous is fine) to add a comment.