[issue14777] Tkinter clipboard_get() decodes characters incorrectly

Martin v. Löwis report at bugs.python.org
Sun May 13 21:43:03 CEST 2012


Martin v. Löwis <martin at v.loewis.de> added the comment:

> But the encoding used seemingly depends on the source application -
> Geany (GTK 2, I think) seemingly sends UTF8 text anyway, whereas
> Firefox escapes the unicode character. So I don't think we can
> correctly decode the STRING value in all cases.

Ah, ok. IIUC, support for UTF8_STRING would also be in the realm of
the source application, right? If so, I think we should use something
more involved where we try UTF8_STRING first, and fall back to STRING
if the application doesn't support that.

This I could also accept for 2.7, since it "shouldn't" have a potential
for breakage.

----------

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


More information about the Python-bugs-list mailing list