Author terry.reedy
Recipients kamisky, roger.serwy, terry.reedy
Date 2015-03-15.23:12:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1426461130.05.0.0519857952873.issue23672@psf.upfronthosting.co.za>
In-reply-to
Content
The full path of a file being edited also ends up in the title bar and the Window menu.  I do not know whether the title bar is displayed by tk or the OS (Windows obviously displays the title of taskbar icons) but the Window list is definitely by tk.  It seems to me that files need two names: the system name used to open (and re-open) a file (utf-8 bytes on *nix?) and a tk name (BMD unicode) for display in the various places.

The current limitation to BMP names is a limitation of the tcl/tk gui framework.  I would like to add a workaround but do not consider its absence a bug.  I am proposing on python-list the addition of some builtin means to replace non-BMP chars with \U000xxxxx escapes for display purposes.  This would be generally useful for tkinter programming.  The thread is "Add str.bmp() to only expand non-BMP chars, for tkinter use".

If this does not happen in 3.5, I would consider a patch to add a private function to EditorWindow.py to do the same.  It would be far less efficient, but fast enough for short path names.

The EditorWindow.py line numbers are slight different from those in 3.4.3 (and 3.4.2, I believe), so I presume this is with 3.4.0 or 3.4.1.  The result with 3.4.3 should be unchanged.
History
Date User Action Args
2015-03-15 23:12:10terry.reedysetrecipients: + terry.reedy, roger.serwy, kamisky
2015-03-15 23:12:10terry.reedysetmessageid: <1426461130.05.0.0519857952873.issue23672@psf.upfronthosting.co.za>
2015-03-15 23:12:10terry.reedylinkissue23672 messages
2015-03-15 23:12:09terry.reedycreate