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

pdb uses the locale encoding for .pdbrc #85309

Closed
serhiy-storchaka opened this issue Jun 27, 2020 · 4 comments
Closed

pdb uses the locale encoding for .pdbrc #85309

serhiy-storchaka opened this issue Jun 27, 2020 · 4 comments
Labels
3.11 stdlib Python modules in the Lib dir

Comments

@serhiy-storchaka
Copy link
Member

serhiy-storchaka commented Jun 27, 2020

BPO 41137
Nosy @vstinner, @methane, @serhiy-storchaka, @srinivasreddy, @eamanu
PRs
  • bpo-41137: Use utf-8 encoding while reading .pdbrc files #21263
  • bpo-41137: Reorganize What's New in Python 3.11 #28518
  • 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 2021-07-08.07:16:25.033>
    created_at = <Date 2020-06-27.07:23:15.656>
    labels = ['library', '3.11']
    title = 'pdb uses the locale encoding for .pdbrc'
    updated_at = <Date 2021-09-23.09:38:02.947>
    user = 'https://github.com/serhiy-storchaka'

    bugs.python.org fields:

    activity = <Date 2021-09-23.09:38:02.947>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-07-08.07:16:25.033>
    closer = 'methane'
    components = ['Library (Lib)']
    creation = <Date 2020-06-27.07:23:15.656>
    creator = 'serhiy.storchaka'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 41137
    keywords = ['patch']
    message_count = 4.0
    messages = ['372454', '372459', '397127', '402484']
    nosy_count = 5.0
    nosy_names = ['vstinner', 'methane', 'serhiy.storchaka', 'thatiparthy', 'eamanu']
    pr_nums = ['21263', '28518']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue41137'
    versions = ['Python 3.11']

    @serhiy-storchaka
    Copy link
    Member Author

    serhiy-storchaka commented Jun 27, 2020

    pdb uses the locale encoding when read the .pdbrc file. It means that the current locale of the debugged program affects it. It also makes .pdbrc not portable between different platforms.

    It is usually not an issue, because the .pdbrc file usually contains ASCII-only data. But maybe always use UTF-8 for .pdbrc files?

    @serhiy-storchaka serhiy-storchaka added stdlib Python modules in the Lib dir labels Jun 27, 2020
    @methane
    Copy link
    Member

    methane commented Jun 27, 2020

    +1 for UTF-8 always.

    @methane methane added the 3.11 label Jul 8, 2021
    @methane methane closed this as completed Jul 8, 2021
    @methane methane added the 3.11 label Jul 8, 2021
    @methane methane closed this as completed Jul 8, 2021
    @methane
    Copy link
    Member

    methane commented Jul 8, 2021

    New changeset 58248d9 by Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) in branch 'main':
    bpo-41137: Use utf-8 encoding while reading .pdbrc files (GH-21263)
    58248d9

    @vstinner
    Copy link
    Member

    vstinner commented Sep 23, 2021

    New changeset ec7ffa4 by Victor Stinner in branch 'main':
    bpo-41137: Reorganize What's New in Python 3.11 (GH-28518)
    ec7ffa4

    @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.11 stdlib Python modules in the Lib dir
    Projects
    None yet
    Development

    No branches or pull requests

    3 participants