Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python '--help' has corrupted text. #85697

Closed
WildCard65 mannequin opened this issue Aug 11, 2020 · 8 comments
Closed

Python '--help' has corrupted text. #85697

WildCard65 mannequin opened this issue Aug 11, 2020 · 8 comments
Labels
3.8 only security fixes 3.9 only security fixes interpreter-core (Objects, Python, Grammar, and Parser dirs) type-bug An unexpected behavior, bug, or error

Comments

@WildCard65
Copy link
Mannequin

WildCard65 mannequin commented Aug 11, 2020

BPO 41525
Nosy @vstinner, @serhiy-storchaka, @pablogsal, @WildCard65, @miss-islington, @tirkarthi
PRs
  • bpo-41525: Make the Python program help ASCII-only #21836
  • [3.9] bpo-41525: Make the Python program help ASCII-only (GH-21836) #22162
  • [3.8] bpo-41525: Make the Python program help ASCII-only (GH-21836) #22163
  • 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 2020-09-09.00:41:11.259>
    created_at = <Date 2020-08-11.23:19:48.056>
    labels = ['interpreter-core', 'type-bug', '3.8', '3.9']
    title = "Python '--help' has corrupted text."
    updated_at = <Date 2020-09-09.07:44:33.722>
    user = 'https://github.com/WildCard65'

    bugs.python.org fields:

    activity = <Date 2020-09-09.07:44:33.722>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-09-09.00:41:11.259>
    closer = 'WildCard65'
    components = ['Interpreter Core']
    creation = <Date 2020-08-11.23:19:48.056>
    creator = 'WildCard65'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 41525
    keywords = ['patch']
    message_count = 8.0
    messages = ['375204', '375205', '375211', '375212', '376610', '376611', '376612', '376621']
    nosy_count = 7.0
    nosy_names = ['vstinner', 'serhiy.storchaka', 'pablogsal', 'WildCard65', 'miss-islington', 'xtreak', 'PeterL777']
    pr_nums = ['21836', '22162', '22163']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue41525'
    versions = ['Python 3.8', 'Python 3.9']

    @WildCard65
    Copy link
    Mannequin Author

    WildCard65 mannequin commented Aug 11, 2020

    Running Python's '--help' argument yields some corrupted text:
    "-X dev: enable CPythonâ?Ts â?odevelopment modeâ??, introducing additional runtime"

    @WildCard65 WildCard65 mannequin added 3.8 only security fixes interpreter-core (Objects, Python, Grammar, and Parser dirs) type-bug An unexpected behavior, bug, or error labels Aug 11, 2020
    @PeterL777
    Copy link
    Mannequin

    PeterL777 mannequin commented Aug 12, 2020

    Also appearing in 3.9.0rc1 AMD64
    I think it's transliterated Unicode, rather than an actual corruption. I'm on Win10, so it might be a Windows command shell issue (although it is showing bad in cmd, PS7 and PS5).
    Help messages should be plain ASCII to avoid this issue.

    @PeterL777 PeterL777 mannequin added 3.9 only security fixes labels Aug 12, 2020
    @tirkarthi
    Copy link
    Member

    serhiy , I can similar quotes present in Lib/pydoc_data/topics.py too which is autogenerated. Could this cause issues with pydoc too while reading topics?

    @serhiy-storchaka
    Copy link
    Member

    Yes, but I think it is worth opening a separate issue.

    @pablogsal
    Copy link
    Member

    New changeset 58de1dd by Serhiy Storchaka in branch 'master':
    bpo-41525: Make the Python program help ASCII-only (GH-21836)
    58de1dd

    @WildCard65 WildCard65 mannequin closed this as completed Sep 9, 2020
    @WildCard65 WildCard65 mannequin closed this as completed Sep 9, 2020
    @miss-islington
    Copy link
    Contributor

    New changeset 9171dc2 by Miss Islington (bot) in branch '3.8':
    bpo-41525: Make the Python program help ASCII-only (GH-21836)
    9171dc2

    @miss-islington
    Copy link
    Contributor

    New changeset 11a82c7 by Miss Islington (bot) in branch '3.9':
    bpo-41525: Make the Python program help ASCII-only (GH-21836)
    11a82c7

    @vstinner
    Copy link
    Member

    vstinner commented Sep 9, 2020

    xtreak: "serhiy , I can similar quotes present in Lib/pydoc_data/topics.py too which is autogenerated. Could this cause issues with pydoc too while reading topics?"

    If you consider that it is an issue, please open a new issue.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.8 only security fixes 3.9 only security fixes interpreter-core (Objects, Python, Grammar, and Parser dirs) type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    5 participants