python / python/cpython

Chinese characters issue with input() function

Open
#77,873 16 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

OS-mac type-bug
Dominant language
Python
Stars
77.2k
Forks
36k
PR merge metrics
PR metrics pending

Description

BPO 33692
Nosy @vstinner, @zhangyangyu
PRs
  • python/cpython#7244
  • python/cpython#7246
  • python/cpython#7293
  • python/cpython#7293
  • python/cpython#7298
  • python/cpython#7301
  • python/cpython#7304
  • Files
  • input_test.py: a file makes you input Chinese characters
  • 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 = None
    created_at = <Date 2018-05-30.09:36:41.545>
    labels = ['OS-mac', 'type-bug']
    title = 'Chinese characters issue with input() function'
    updated_at = <Date 2018-06-01.10:29:49.196>
    user = 'https://bugs.python.org/ValentinZhao'
    

    bugs.python.org fields:

    activity = <Date 2018-06-01.10:29:49.196>
    actor = 'vstinner'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['macOS']
    creation = <Date 2018-05-30.09:36:41.545>
    creator = 'Valentin Zhao'
    dependencies = []
    files = ['47623']
    hgrepos = []
    issue_num = 33692
    keywords = ['patch']
    message_count = 16.0
    messages = ['318160', '318169', '318177', '318179', '318180', '318185', '318189', '318190', '318208', '318235', '318363', '318371', '318372', '318383', '318385', '318390']
    nosy_count = 3.0
    nosy_names = ['vstinner', 'xiang.zhang', 'Valentin Zhao']
    pr_nums = ['7244', '7246', '7293', '7293', '7298', '7301', '7304']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue33692'
    versions = ['Python 3.6']
    

    Contributor guide

    Open the contributing guide

    First steps

    1. Read the whole issue, then the project's contributing guide.
    2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
    3. Fork the repository and make your change on a branch.
    4. Open a pull request that references the issue number.

    Research direction

    Start with the linked BPO issue and input_test.py, which reproduces entering Chinese characters, then review the macOS-specific input() behavior. Run the reproduction and relevant input tests; done means the reported Chinese-character behavior is corrected and covered by a passing regression test.

    Written by the indexing model from the issue text.

    Assessment

    Tech stack
    python
    Domain
    cli
    Issue type
    Bug
    Difficulty
    3/5
    Estimated time
    1-2 days
    Activity status
    Stale
    Clarity
    Needs clarification
    Newbie friendliness
    25/100

    Get new issues in your inbox

    A short digest of beginner-friendly GitHub issues.