Skip to content

getpass.getpass() fails with non-ASCII characters in prompt #65368

@Arfrever

Description

@Arfrever
mannequin
BPO 21169
Nosy @loewis, @bitdancer, @serhiy-storchaka, @kushaldas
Files
  • getpass_test_python2
  • getpass_test_python3
  • issue21169.patch: Stops the breakage of nonascii chars in non utf-8 environment
  • issue21169_v2.patch: Version2 of the patch with a test update.
  • issue21169_v3.patch: Updated patch with discovering of currect locale and corresponding test case.
  • issue21169_v4.patch: New patch with actual test case :)
  • issue21169_v5.patch: Newer version of the patch with stream.encoding
  • issue21169_v6.patch: New patchset.
  • issue21169_v7.patch: Another patch with docs update and one line code comment.
  • 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 2014-04-14.14:32:58.696>
    created_at = <Date 2014-04-07.11:23:55.654>
    labels = ['easy', 'type-bug', 'library']
    title = 'getpass.getpass() fails with non-ASCII characters in prompt'
    updated_at = <Date 2014-04-14.14:32:58.695>
    user = 'https://bugs.python.org/Arfrever'

    bugs.python.org fields:

    activity = <Date 2014-04-14.14:32:58.695>
    actor = 'r.david.murray'
    assignee = 'none'
    closed = True
    closed_date = <Date 2014-04-14.14:32:58.696>
    closer = 'r.david.murray'
    components = ['Library (Lib)']
    creation = <Date 2014-04-07.11:23:55.654>
    creator = 'Arfrever'
    dependencies = []
    files = ['34747', '34748', '34766', '34767', '34775', '34776', '34807', '34810', '34815']
    hgrepos = []
    issue_num = 21169
    keywords = ['patch', 'easy']
    message_count = 19.0
    messages = ['215697', '215778', '215779', '215828', '215829', '216002', '216006', '216009', '216013', '216041', '216045', '216050', '216051', '216052', '216054', '216077', '216078', '216081', '216082']
    nosy_count = 6.0
    nosy_names = ['loewis', 'Arfrever', 'r.david.murray', 'python-dev', 'serhiy.storchaka', 'kushal.das']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue21169'
    versions = ['Python 2.7', 'Python 3.4', 'Python 3.5']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      easystdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions