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.

Title: some UTF8 symbols
Type: crash Stage: resolved
Components: IDLE, Windows Versions: Python 3.6
Status: closed Resolution: duplicate
Dependencies: Superseder: IDLE freezes when opening a file with astral characters
View: 30019
Assigned To: terry.reedy Nosy List: Priit Oorn, mrabarnett, paul.moore, steve.dower, terry.reedy, tim.golden, zach.ware
Priority: normal Keywords:

Created on 2017-04-29 16:48 by Priit Oorn, last changed 2022-04-11 14:58 by admin. This issue is now closed.

File name Uploaded Description Edit
goth - Priit Oorn, 2017-04-29 16:53
Messages (3)
msg292595 - (view) Author: Priit Oorn (Priit Oorn) Date: 2017-04-29 16:48
It seems that idle has problems with some UTF8 / Unicode characters and loading files that have them inside them.

I tried to do code to replace text with other symbols from unicode table. First in idle and pasting the symbol "𝔄" into the idle it caused both the text editor and idle itself to close. Then made edit and paste in notepad.exe for the same file, which seemed to work fine... but when I tried to open the file in idle, it opened an empty editor which was bugged and unable to close and I had to kill it off from taskmanager.
(Yes you can edit and write stuff into the empty new file, and even save it, but you can't close it from the top window X button and Exit causes it to close idle and keep the editor window still open)

replacements = {'A':'𝔄', 'B':'𝔅', 'C':'ℭ', 'D':'𝔇'}
msg292600 - (view) Author: Matthew Barnett (mrabarnett) * (Python triager) Date: 2017-04-29 20:02
IDLE uses tkinter, which wraps tcl/tk. Versions up to tcl/tk 8.6 can't handle 'astral' codepoints.

See also:

Issue #30019: IDLE freezes when opening a file with astral characters

Issue #21084: IDLE can't deal with characters above the range (U+0000-U+FFFF)
msg292606 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2017-04-29 23:08
Duplicate, or close enough, of #30019, which has more on issue.
Date User Action Args
2022-04-11 14:58:45adminsetgithub: 74395
2017-04-29 23:08:39terry.reedysetstatus: open -> closed
superseder: IDLE freezes when opening a file with astral characters
messages: + msg292606

resolution: duplicate
stage: resolved
2017-04-29 20:02:32mrabarnettsetnosy: + mrabarnett
messages: + msg292600
2017-04-29 16:53:57Priit Oornsetfiles: + goth -
2017-04-29 16:53:42Priit Oornsetfiles: - goth -
2017-04-29 16:49:30Priit Oornsetnosy: + paul.moore, tim.golden, zach.ware, steve.dower
components: + Windows
2017-04-29 16:49:03Priit Oornsetassignee: terry.reedy

components: + IDLE
nosy: + terry.reedy
2017-04-29 16:48:42Priit Oorncreate