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

Fix incorrectly formatted _codecs.charmap_decode error message #86231

Closed
taleinat opened this issue Oct 17, 2020 · 5 comments
Closed

Fix incorrectly formatted _codecs.charmap_decode error message #86231

taleinat opened this issue Oct 17, 2020 · 5 comments
Labels
3.8 only security fixes 3.9 only security fixes 3.10 only security fixes stdlib Python modules in the Lib dir topic-unicode type-bug An unexpected behavior, bug, or error

Comments

@taleinat
Copy link
Contributor

BPO 42065
Nosy @vstinner, @taleinat, @ezio-melotti, @miss-islington
PRs
  • bpo-42065: Fix incorrectly formatted _codecs.charmap_decode error message #19940
  • [3.9] bpo-42065: Fix incorrectly formatted _codecs.charmap_decode error message (GH-19940) #22743
  • [3.8] bpo-42065: Fix incorrectly formatted _codecs.charmap_decode error message (GH-19940) #22744
  • 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-10-17.20:40:52.940>
    created_at = <Date 2020-10-17.20:05:08.976>
    labels = ['type-bug', '3.8', '3.9', '3.10', 'library', 'expert-unicode']
    title = 'Fix incorrectly formatted _codecs.charmap_decode error message'
    updated_at = <Date 2020-10-18.06:16:59.754>
    user = 'https://github.com/taleinat'

    bugs.python.org fields:

    activity = <Date 2020-10-18.06:16:59.754>
    actor = 'taleinat'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-10-17.20:40:52.940>
    closer = 'taleinat'
    components = ['Library (Lib)', 'Unicode']
    creation = <Date 2020-10-17.20:05:08.976>
    creator = 'taleinat'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 42065
    keywords = ['patch']
    message_count = 5.0
    messages = ['378827', '378830', '378831', '378849', '378850']
    nosy_count = 4.0
    nosy_names = ['vstinner', 'taleinat', 'ezio.melotti', 'miss-islington']
    pr_nums = ['19940', '22743', '22744']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue42065'
    versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']

    @taleinat
    Copy link
    Contributor Author

    The error message for _codecs.charmap_decode uses a non-existent formatting placeholder "%lx", when a mapped value is a number outside the range of valid Unicode code points.

    This was reported by Max Bernstein (@tekknolagi) on GitHub PR #64139.

    @taleinat taleinat added stdlib Python modules in the Lib dir topic-unicode 3.8 only security fixes 3.9 only security fixes 3.10 only security fixes type-bug An unexpected behavior, bug, or error labels Oct 17, 2020
    @taleinat
    Copy link
    Contributor Author

    New changeset 3635388 by Max Bernstein in branch 'master':
    bpo-42065: Fix incorrectly formatted _codecs.charmap_decode error message (GH-19940)
    3635388

    @taleinat
    Copy link
    Contributor Author

    Thanks for the PR, Max!

    @taleinat
    Copy link
    Contributor Author

    New changeset 6a2aa49 by Miss Skeleton (bot) in branch '3.9':
    bpo-42065: Fix incorrectly formatted _codecs.charmap_decode error message (GH-19940)
    6a2aa49

    @taleinat
    Copy link
    Contributor Author

    New changeset 400175a by Miss Skeleton (bot) in branch '3.8':
    bpo-42065: Fix incorrectly formatted _codecs.charmap_decode error message (GH-19940)
    400175a

    @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 3.10 only security fixes stdlib Python modules in the Lib dir topic-unicode type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant