Tk Source Code

View Ticket
Login
Ticket UUID: 3160703
Title: Add unicode support for tk_chooseDirectory on Windows
Type: RFE Version: None
Submitter: zoro2 Created on: 2011-01-18 10:59:10
Subsystem: 36. [tk_chooseDirectory] Assigned To: jan.nijtmans
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2014-03-13 09:10:57
Resolution: Fixed Closed By: nijtmans
    Closed on: 2013-01-08 10:50:28
Description:
tk_chooseDirectory does not handle unicode directory names properly on Windows - for example on a Windows box this fails:
% file mkdir c:/\u2345
% tk_chooseDirectory -initialdir C:/\u2345 ; # this goes to "My Computer" while "C:/" works

When choosing directory with non-ansi chars - the following is returned:
C:/?

Attached is a sample patch (ported from 8.5a4 patch BitRock used) so it might miss some features added in 8.5 and 8.6 development.

This can be reimplemented and/or #ifdef-ed to properly support Windows CE, if needed.
User Comments: nijtmans added on 2013-01-08 17:50:28:

allow_comments - 1

Fixed already in Tk 8.6.0

zoro2 added on 2011-01-18 17:59:10:

File Added - 399085: tk-HEAD-tkWinDialog.patch

Attachments: