Skip to content

Crash caused by pasting 𐌈𐌖 into IDLE on Windows #77966

Closed

Description

@romaji
mannequin
BPO 33785
Nosy @terryjreedy, @vstinner, @ezio-melotti, @zware, @serhiy-storchaka
Superseder
  • 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 = <Date 2018-06-06.21:38:44.045>
    created_at = <Date 2018-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 = <Date 2018-06-06.21:38:44.017>
    user = 'https://bugs.python.org/romaji'

    bugs.python.org fields:

    activity = <Date 2018-06-06.21:38:44.017>
    actor = 'terry.reedy'
    assignee = 'terry.reedy'
    closed = True
    closed_date = <Date 2018-06-06.21:38:44.045>
    closer = 'terry.reedy'
    components = ['IDLE', 'Unicode']
    creation = <Date 2018-06-06.15:55:54.135>
    creator = 'romaji'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 33785
    keywords = []
    message_count = 9.0
    messages = ['318839', '318840', '318842', '318844', '318845', '318846', '318847', '318850', '318861']
    nosy_count = 6.0
    nosy_names = ['terry.reedy', 'vstinner', 'ezio.melotti', 'zach.ware', 'serhiy.storchaka', 'romaji']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '13153'
    type = 'crash'
    url = 'https://bugs.python.org/issue33785'
    versions = ['Python 3.6', 'Python 3.7', 'Python 3.8']

    Activity

    1. romaji commented on Jun 6, 2018

      romajimannequin
      MannequinAuthor

      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.

    2. added
      type-crash
      on Jun 6, 2018
    3. vstinner commented on Jun 6, 2018

      @vstinner
      Member

      Are you using cmd.exe, PowerShell or IDLE?

    4. romaji commented on Jun 6, 2018

      romajimannequin
      MannequinAuthor

      IDLE

      On Wed, Jun 6, 2018, 11:56 STINNER Victor <report@bugs.python.org> wrote:

      STINNER Victor <vstinner@redhat.com> added the comment:

      Are you using cmd.exe, PowerShell or IDLE?

      ----------


      Python tracker <report@bugs.python.org>
      <https://bugs.python.org/issue33785\>


    5. zware commented on Jun 6, 2018

      @zware
      Member

      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.

    6. romaji commented on Jun 6, 2018

      romajimannequin
      MannequinAuthor

      Would running it in Powershell avoid the issue?
      What is the BMP, by the way?

    7. mrabarnett commented on Jun 6, 2018

      mrabarnettmannequin
      Mannequin

      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.

    8. zware commented on Jun 6, 2018

      @zware
      Member

      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

    9. romaji commented on Jun 6, 2018

      romajimannequin
      MannequinAuthor

      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

    10. changed the title [-]Crash caused by pasting 𐌈𐌖 into python[/-] [+]Crash caused by pasting 𐌈𐌖 into IDLE on Windows[/+] on Jun 6, 2018
    11. terryjreedy commented on Jun 6, 2018

      @terryjreedy
      Member

      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.

    12. added
      3.7 (EOL)
      3.8 (EOL)
      on Jun 6, 2018
    13. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    Labels

    3.7 (EOL)3.8 (EOL)topic-IDLEtopic-unicodetype-crash

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions