This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients THRlWiTi, belopolsky, martin.panter, terry.reedy
Date 2019-04-25.00:55:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1556153741.93.0.115387342737.issue22742@roundup.psfhosted.org>
In-reply-to
Content
I haven’t looked at the code, but I suspect Idle implements a custom “sys.displayhook”:

>>> help(sys.displayhook)
Help on function displayhook in module idlelib.rpc:

displayhook(value)
    Override standard display hook to use non-locale encoding

>>> sys.displayhook('\N{ROCKET}')
'\U0001f680'
>>> sys.__displayhook__('\N{ROCKET}')
Traceback (most recent call last):
  File "<pyshell#20>", line 1, in <module>
    sys.__displayhook__('\N{ROCKET}')
  File "/usr/lib/python3.5/idlelib/PyShell.py", line 1344, in write
    return self.shell.write(s, self.tags)
UnicodeEncodeError: 'UCS-2' codec can't encode characters in position 1-1: Non-BMP character not supported in Tk
History
Date User Action Args
2019-04-25 00:55:41martin.pantersetrecipients: + martin.panter, terry.reedy, belopolsky, THRlWiTi
2019-04-25 00:55:41martin.pantersetmessageid: <1556153741.93.0.115387342737.issue22742@roundup.psfhosted.org>
2019-04-25 00:55:41martin.panterlinkissue22742 messages
2019-04-25 00:55:41martin.pantercreate