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
IDLE for Python 3.5.1 for x64 Windows exits when pasted a string with non-BMP characters #70607
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=Noneclosed_at=<Date2016-02-27.10:05:25.860>created_at=<Date2016-02-23.14:24:34.909>labels= ['expert-IDLE', 'type-bug']
title='IDLE for Python 3.5.1 for x64 Windows exits when pasted a string with non-BMP characters'updated_at=<Date2016-02-27.10:05:25.858>user='https://bugs.python.org/tatsu'
On Windows Server 2012 R2 with Update(which is compatible with Windows 8.1 Update 1), I copied a character U+20BB7 and pasted it on IDLE. After that, IDLE suddenly exited with no messages, notices, or errors.
Then, I tried to input some non-BMP charactors by the Google Japanese IME other than 𠮷 such as U+1F444, U+1F468 and found that the IDLE exited as the same way.
I suppose that these phenomena could be due to a failure when treating surrogate pairs in input or pasted strings.
P.S.
𠮷 is explained as U+20BB7 in UCS-4. And the characters that is explaind as U+1F444(👄) and U+1F468(👨) are both what are said emojis(explains the mouth and man)
If you start IDLE from the console with 'python -m idlelib' you should see a TclError message when pasting. This is a known limitation of tcl/tk. Printing gives a traceback in IDLE's shell.
>>> print('\U00020BB7')
Traceback (most recent call last):
File "<pyshell#26>", line 1, in <module>
print('\U00020BB7')
File "C:\Programs\Python35\lib\idlelib\PyShell.py", line 1344, in write
return self.shell.write(s, self.tags)
UnicodeEncodeError: 'UCS-2' codec can't encode character '\U00020bb7' in position 0: Non-BMP character not supported in Tk
changed the title [-]IDEL for Python 3.5.1 for x64 Windows exits when pasted a string with non-BMP characters[/-][+]IDLE for Python 3.5.1 for x64 Windows exits when pasted a string with non-BMP characters[/+]on Feb 27, 2016
Activity
tatsu commentedon Feb 23, 2016
On Windows Server 2012 R2 with Update(which is compatible with Windows 8.1 Update 1), I copied a character U+20BB7 and pasted it on IDLE. After that, IDLE suddenly exited with no messages, notices, or errors.
Then, I tried to input some non-BMP charactors by the Google Japanese IME other than 𠮷 such as U+1F444, U+1F468 and found that the IDLE exited as the same way.
I suppose that these phenomena could be due to a failure when treating surrogate pairs in input or pasted strings.
tatsu commentedon Feb 23, 2016
P.S.
𠮷 is explained as U+20BB7 in UCS-4. And the characters that is explaind as U+1F444(👄) and U+1F468(👨) are both what are said emojis(explains the mouth and man)
serhiy-storchaka commentedon Feb 24, 2016
This looks as a duplicate of bpo-13153.
terryjreedy commentedon Feb 27, 2016
[-]IDEL for Python 3.5.1 for x64 Windows exits when pasted a string with non-BMP characters[/-][+]IDLE for Python 3.5.1 for x64 Windows exits when pasted a string with non-BMP characters[/+]