[issue13153] IDLE 3.x on Windows exits when pasting non-BMP unicode
Tal Einat
report at bugs.python.org
Wed Oct 2 14:52:54 EDT 2019
Tal Einat <taleinat at gmail.com> added the comment:
Serhiy, this looks like a great step in the right direction!
Tested on Win10 with PR GH-16545 (commit f4db0e7e00). Here is a copy/paste from an IDLE shell session:
>>> '\N{PERSONAL COMPUTER}'
'ð»'
>>> print('💻')
SyntaxError: 'utf-8' codec can't encode characters in position 7-12: surrogates not allowed
Note that in the first output, the second and third chars in the string aren't visible in IDLE; i.e. what is actually displayed is 'ð»'.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue13153>
_______________________________________
More information about the Python-bugs-list
mailing list