Skip to content

Python throws “SyntaxError: Non-UTF-8 code start with \xe8...” when parse source file #79160

@ausaki

Description

@ausaki
mannequin
BPO 34979
Nosy @terryjreedy, @ezio-melotti, @serhiy-storchaka, @zhangyangyu, @tirkarthi, @ausaki
PRs
  • bpo-34979: fix "SyntaxError: Non-UTF-8 code start with \xe8..." caused by function decoding_fgets #9923
  • 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 2019-11-16.17:37:53.843>
    created_at = <Date 2018-10-14.02:01:38.987>
    labels = ['interpreter-core', 'type-bug']
    title = 'Python throws \xe2\x80\x9cSyntaxError: Non-UTF-8 code start with \\xe8...\xe2\x80\x9d when parse source file'
    updated_at = <Date 2019-11-16.17:37:53.840>
    user = 'https://github.com/ausaki'

    bugs.python.org fields:

    activity = <Date 2019-11-16.17:37:53.840>
    actor = 'ausaki'
    assignee = 'serhiy.storchaka'
    closed = True
    closed_date = <Date 2019-11-16.17:37:53.843>
    closer = 'ausaki'
    components = ['Interpreter Core']
    creation = <Date 2018-10-14.02:01:38.987>
    creator = 'ausaki'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 34979
    keywords = ['patch']
    message_count = 11.0
    messages = ['327686', '327689', '327697', '327699', '327702', '327706', '327709', '327878', '356711', '356741', '356760']
    nosy_count = 6.0
    nosy_names = ['terry.reedy', 'ezio.melotti', 'serhiy.storchaka', 'xiang.zhang', 'xtreak', 'ausaki']
    pr_nums = ['9923']
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue34979'
    versions = ['Python 3.6']

    Metadata

    Metadata

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions