[issue14777] Tkinter clipboard_get() decodes characters incorrectly

Thomas Kluyver report at bugs.python.org
Sun May 13 22:21:01 CEST 2012


Thomas Kluyver <takowl at gmail.com> added the comment:

As requested, the second version of the patch (x11-clipboard-try-utf8):

- Caches the windowing system per object. The tk call to find the windowing system is made the first time clipboard_get or selection_get are called without specifying `type=`.
- If using UTF8_STRING throws an error, it falls back to the default call with no type specified (i.e. STRING).

----------
Added file: http://bugs.python.org/file25566/x11-clipboard-try-utf8.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14777>
_______________________________________


More information about the Python-bugs-list mailing list