You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Crash caused by pasting 𐌈𐌖 into IDLE on Windows #77966
bpo-13153: IDLE 3.x on Windows exits when pasting non-BMP unicode
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/terryjreedy'closed_at=<Date2018-06-06.21:38:44.045>created_at=<Date2018-06-06.15:55:54.135>labels= ['expert-IDLE', '3.7', '3.8', 'expert-unicode', 'type-crash']
title='Crash caused by pasting \xf0\x90\x8c\x88\xf0\x90\x8c\x96 into IDLE on Windows'updated_at=<Date2018-06-06.21:38:44.017>user='https://bugs.python.org/romaji'
On Windows 10, 64 bit, "Python 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 18:41:36) [MSC v.1900 64 bit (AMD64)] on win32" crashes if 𐌈𐌖 is pasted into the interpreter window, closing the window immediately.
Also 𐌆𐌀𐌋 crashes it too, suggesting the bug might be in text processing of Etruscan runes.
I suspect this is the old issue of Tcl/Tk's lack of support for Unicode characters outside the BMP. If I'm correct, there's nothing we can do about it.
Would running it in Powershell avoid the issue?
What is the BMP, by the way?
mrabarnett commented on Jun 6, 2018
mrabarnettmannequin
Mannequin
More actions
For clarity, the first is '\U00010308\U00010316' and the second is '\U00010306\U00010300\U0001030B'.
The BMP is the Basic Multilingual Plane, which covers the codepoints in the range U+0000 to U+FFFF. Some software has a problem dealing with codepoints outside the BMP.
This is a duplicate of the remaining part of bpo-13153. The error message displayed in a console used to start IDLE is the same, ending with "UnicodeDecodeError: 'utf-8' codec can't decode byte 0xed in position 0: invalid continuation byte" In the previous issue, Ezio explained the message and Serhiy submitted patches at yet untested. So I am closing this.
Activity
romaji commentedon Jun 6, 2018
On Windows 10, 64 bit, "Python 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 18:41:36) [MSC v.1900 64 bit (AMD64)] on win32" crashes if 𐌈𐌖 is pasted into the interpreter window, closing the window immediately.
Also 𐌆𐌀𐌋 crashes it too, suggesting the bug might be in text processing of Etruscan runes.
vstinner commentedon Jun 6, 2018
Are you using cmd.exe, PowerShell or IDLE?
romaji commentedon Jun 6, 2018
IDLE
On Wed, Jun 6, 2018, 11:56 STINNER Victor <report@bugs.python.org> wrote:
zware commentedon Jun 6, 2018
I suspect this is the old issue of Tcl/Tk's lack of support for Unicode characters outside the BMP. If I'm correct, there's nothing we can do about it.
romaji commentedon Jun 6, 2018
Would running it in Powershell avoid the issue?
What is the BMP, by the way?
mrabarnett commentedon Jun 6, 2018
For clarity, the first is '\U00010308\U00010316' and the second is '\U00010306\U00010300\U0001030B'.
The BMP is the Basic Multilingual Plane, which covers the codepoints in the range U+0000 to U+FFFF. Some software has a problem dealing with codepoints outside the BMP.
zware commentedon Jun 6, 2018
Depending on PowerShell's support for Unicode (I'm not familiar with it :)), yes; running python from PowerShell would probably be fine in this case.
The BMP: https://en.wikipedia.org/wiki/Plane_(Unicode)#Basic_Multilingual_Plane
romaji commentedon Jun 6, 2018
It doesn't crash in Powershell, only shows up as the ? in a box character
The issue must be with IDLE, most likely the BMP lack of support
[-]Crash caused by pasting 𐌈𐌖 into python[/-][+]Crash caused by pasting 𐌈𐌖 into IDLE on Windows[/+]terryjreedy commentedon Jun 6, 2018
This is a duplicate of the remaining part of bpo-13153. The error message displayed in a console used to start IDLE is the same, ending with "UnicodeDecodeError: 'utf-8' codec can't decode byte 0xed in position 0: invalid continuation byte" In the previous issue, Ezio explained the message and Serhiy submitted patches at yet untested. So I am closing this.