Skip to content

IDLE for Python 3.5.1 for x64 Windows exits when pasted a string with non-BMP characters #70607

Closed

Description

@tatsu
mannequin
BPO 26420
Nosy @terryjreedy, @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 = None
    closed_at = <Date 2016-02-27.10:05:25.860>
    created_at = <Date 2016-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 = <Date 2016-02-27.10:05:25.858>
    user = 'https://bugs.python.org/tatsu'

    bugs.python.org fields:

    activity = <Date 2016-02-27.10:05:25.858>
    actor = 'terry.reedy'
    assignee = 'none'
    closed = True
    closed_date = <Date 2016-02-27.10:05:25.860>
    closer = 'terry.reedy'
    components = ['IDLE']
    creation = <Date 2016-02-23.14:24:34.909>
    creator = 'tats.u.'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 26420
    keywords = []
    message_count = 4.0
    messages = ['260736', '260737', '260795', '260937']
    nosy_count = 3.0
    nosy_names = ['terry.reedy', 'serhiy.storchaka', 'tats.u.']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '13153'
    type = 'behavior'
    url = 'https://bugs.python.org/issue26420'
    versions = ['Python 3.5']

    Activity

    1. tatsu commented on Feb 23, 2016

      tatsumannequin
      MannequinAuthor

      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.

    2. added
      type-bug
      on Feb 23, 2016
    3. tatsu commented on Feb 23, 2016

      tatsumannequin
      MannequinAuthor

      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)

    4. serhiy-storchaka commented on Feb 24, 2016

      @serhiy-storchaka
      Member

      This looks as a duplicate of bpo-13153.

    5. terryjreedy commented on Feb 27, 2016

      @terryjreedy
      Member
      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
    6. 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
    7. 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

    No one assigned

      Labels

      topic-IDLEtype-bug

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions