[issue13153] IDLE 3.x on Windows exits when pasting non-BMP unicode

Serhiy Storchaka report at bugs.python.org
Wed Oct 2 13:56:02 EDT 2019


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

PR 16545 solves the problem by using OS specific methods for converting between Python and Tcl strings. It is not ideal, but is good enough for most real cases.

Now you can paste, copy and print non-BMP characters. The code containing them can be displayed weird, but the result of print looks OK.

>>> '\N{PERSONAL COMPUTER}'
'💻'
>>> print('💻')
💻

As a side effect, printing '\udcf0\udc9f\udc90\udc8d' on Linux and '\ud83d\udcbb' on Windows should have the same effect as printing '\U0001f4bb'.

I do not know about macOS, but expect the same behavior as on Linux. Could anybody test please?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue13153>
_______________________________________


More information about the Python-bugs-list mailing list