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

bytes decode raises OverflowError desipte errors='ignore' #76006

Closed
Naitbit mannequin opened this issue Oct 20, 2017 · 4 comments
Closed

bytes decode raises OverflowError desipte errors='ignore' #76006

Naitbit mannequin opened this issue Oct 20, 2017 · 4 comments
Assignees
Labels
3.7 (EOL) end of life interpreter-core (Objects, Python, Grammar, and Parser dirs) topic-unicode type-bug An unexpected behavior, bug, or error

Comments

@Naitbit
Copy link
Mannequin

Naitbit mannequin commented Oct 20, 2017

BPO 31825
Nosy @vstinner, @ericvsmith, @ezio-melotti, @serhiy-storchaka, @Naitbit
PRs
  • bpo-31825: Fixed OverflowError in the 'unicode-escape' codec #4058
  • [3.6] bpo-31825: Fixed OverflowError in the 'unicode-escape' codec (GH-4058) #4059
  • 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 = 'https://github.com/serhiy-storchaka'
    closed_at = <Date 2017-10-20.14:42:35.636>
    created_at = <Date 2017-10-20.09:58:20.153>
    labels = ['interpreter-core', 'type-bug', '3.7', 'expert-unicode']
    title = "bytes decode raises OverflowError desipte errors='ignore'"
    updated_at = <Date 2017-10-20.14:42:35.635>
    user = 'https://github.com/Naitbit'

    bugs.python.org fields:

    activity = <Date 2017-10-20.14:42:35.635>
    actor = 'serhiy.storchaka'
    assignee = 'serhiy.storchaka'
    closed = True
    closed_date = <Date 2017-10-20.14:42:35.636>
    closer = 'serhiy.storchaka'
    components = ['Interpreter Core', 'Unicode']
    creation = <Date 2017-10-20.09:58:20.153>
    creator = 'Naitbit'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 31825
    keywords = ['patch']
    message_count = 4.0
    messages = ['304651', '304656', '304658', '304659']
    nosy_count = 5.0
    nosy_names = ['vstinner', 'eric.smith', 'ezio.melotti', 'serhiy.storchaka', 'Naitbit']
    pr_nums = ['4058', '4059']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue31825'
    versions = ['Python 3.6', 'Python 3.7']

    @Naitbit
    Copy link
    Mannequin Author

    Naitbit mannequin commented Oct 20, 2017

    In Python 3.5 and earlier (tested 3.5.3 and 2.7.13)
    b'\\\xfa'.decode('unicode-escape', errors='ignore')
    did return '\\ú'

    but in Python 3.6 it raises
    OverflowError: decoding with 'unicode-escape' codec failed (OverflowError: character argument not in range(0x110000))

    Python 3.6.1 (default, Sep 7 2017, 16:36:03)
    [GCC 6.3.0 20170406] on linux

    @serhiy-storchaka serhiy-storchaka added interpreter-core (Objects, Python, Grammar, and Parser dirs) topic-unicode 3.7 (EOL) end of life labels Oct 20, 2017
    @serhiy-storchaka serhiy-storchaka self-assigned this Oct 20, 2017
    @serhiy-storchaka serhiy-storchaka added the type-bug An unexpected behavior, bug, or error label Oct 20, 2017
    @serhiy-storchaka
    Copy link
    Member

    New changeset 56cb465 by Serhiy Storchaka in branch 'master':
    bpo-31825: Fixed OverflowError in the 'unicode-escape' codec (bpo-4058)
    56cb465

    @serhiy-storchaka
    Copy link
    Member

    New changeset 1e78ed6 by Serhiy Storchaka (Miss Islington (bot)) in branch '3.6':
    bpo-31825: Fixed OverflowError in the 'unicode-escape' codec (GH-4058) (bpo-4059)
    1e78ed6

    @serhiy-storchaka
    Copy link
    Member

    Thank you for your report Sebastian.

    @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.7 (EOL) end of life interpreter-core (Objects, Python, Grammar, and Parser dirs) topic-unicode type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant