Message194623
Seems as Tk stores pasted "\U000104a2" as surrogate pair "\ud801\udca2". Then it encoded in UTF-8 as "\xed\xa0\x81\xed\xb2\xa2" end passed to Python. Python converts char* to Unicode object with PyUnicode_FromString() which forbids invalid UTF-8 including encoded surrogates.
Please test proposed patch on Windows. |
|
Date |
User |
Action |
Args |
2013-08-07 17:47:39 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, terry.reedy, ned.deily, ezio.melotti, roger.serwy, asvetlov, python-dev, JBernardo, Rosuav, Ramchandra Apte, William.Schwartz |
2013-08-07 17:47:38 | serhiy.storchaka | set | messageid: <1375897658.96.0.957123107415.issue13153@psf.upfronthosting.co.za> |
2013-08-07 17:47:38 | serhiy.storchaka | link | issue13153 messages |
2013-08-07 17:47:38 | serhiy.storchaka | create | |
|