sanad added the comment:
Correction:
This patch fixes the problem of idle not opening when recent file list has
filenames outside BMP and the crashing of idle on using filenames with astral
characters.
The added benefit is that you can create a file with such chars and save it and
access it again from the Recent Files List.
What this patch doesn't fix is :
1. The File Open Dialog displays the filename incorrectly.
2. The File Open Dialog doesn't allows the file with such filename to be opened.
3. When trying the to run the file with such name, it gives an Traceback to
Tkinter. The following is the error message :
Exception in Tkinter callback
Traceback (most recent call last):
File "/home/sanad/devpy/pessoc/cpython/Lib/tkinter/__init__.py", line 1549,
in __call__
return self.func(*args)
File "/home/sanad/devpy/pessoc/cpython/Lib/idlelib/ScriptBinding.py", line
124, in run_module_event
return self._run_module_event(event)
File "/home/sanad/devpy/pessoc/cpython/Lib/idlelib/ScriptBinding.py", line
145, in _run_module_event
interp.restart_subprocess(with_cwd=False, filename=code.co_filename)
File "/home/sanad/devpy/pessoc/cpython/Lib/idlelib/PyShell.py", line 502, in
restart_subprocess
console.write("\n{0} {1} {0}".format(halfbar, tag))
File "/home/sanad/devpy/pessoc/cpython/Lib/idlelib/PyShell.py", line 1294, in
write
'Non-BMP character not supported in Tk')
UnicodeEncodeError: 'UCS-2' codec can't encode characters in position 49-49:
Non-BMP character not supported in Tk
Which I guess is another related issue.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue23672>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com