Skip to content

UnicodeDecodeError: 'unicodeescape' codec can't decode byte 0x5c in position 8191: \ at end of string #89624

Closed
@anmyachev

Description

@anmyachev
mannequin
BPO 45461
Nosy @vstinner, @ezio-melotti, @serhiy-storchaka, @miss-islington
PRs
  • bpo-45461: Fix IncrementalDecoder and StreamReader in the "unicode-escape" codec #28939
  • [3.10] bpo-45461: Fix IncrementalDecoder and StreamReader in the "unicode-escape" codec (GH-28939) #28943
  • [3.9] bpo-45461: Fix IncrementalDecoder and StreamReader in the "unicode-escape" codec (GH-28939) #28945
  • Files
  • test.py: test.py - reproducer
  • 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 2021-10-14.17:51:53.099>
    created_at = <Date 2021-10-13.14:31:37.358>
    labels = ['3.10', 'type-bug', '3.9', 'expert-unicode', '3.11']
    title = "UnicodeDecodeError: 'unicodeescape' codec can't decode byte 0x5c in position 8191: \\ at end of string"
    updated_at = <Date 2021-10-14.17:51:53.099>
    user = 'https://bugs.python.org/anmyachev'

    bugs.python.org fields:

    activity = <Date 2021-10-14.17:51:53.099>
    actor = 'serhiy.storchaka'
    assignee = 'serhiy.storchaka'
    closed = True
    closed_date = <Date 2021-10-14.17:51:53.099>
    closer = 'serhiy.storchaka'
    components = ['Unicode']
    creation = <Date 2021-10-13.14:31:37.358>
    creator = 'anmyachev'
    dependencies = []
    files = ['50354']
    hgrepos = []
    issue_num = 45461
    keywords = ['patch']
    message_count = 7.0
    messages = ['403837', '403838', '403840', '403848', '403892', '403919', '403920']
    nosy_count = 6.0
    nosy_names = ['vstinner', 'ezio.melotti', 'mrabarnett', 'serhiy.storchaka', 'miss-islington', 'anmyachev']
    pr_nums = ['28939', '28943', '28945']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue45461'
    versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']

    Metadata

    Metadata

    Labels

    3.10only security fixes3.11only security fixes3.9only security fixestopic-unicodetype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions