Guilherme Polo <[EMAIL PROTECTED]> added the comment: Some more clarifications about this bug:
Tcl shouldn't be giving us a UTF-8 string with a 0xC0 byte, since that is not valid UTF-8. I'm aware that Tcl uses the sequence 0xC0 0x80 for special purposes but it is also said that such sequences shouldn't be passed as is when exported. This bug doesn't affect python 2.x because it uses PyString_FromString to convert such value to a Python string, where python 3.x uses PyUnicode_FromString which assumes that it is receiving a valid utf-8 string but it turns out that is not always the case here. It is indeed related to tk 8.4, but not sure which ones exactly (I hit it with tk 8.4.19). _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1028> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com