This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Incorrect error when parsing non-utf8 files
Type: Stage: patch review
Components: Parser Versions: Python 3.11, Python 3.10
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: lys.nikolaou, miss-islington, pablogsal
Priority: normal Keywords: patch

Created on 2021-12-12 05:29 by pablogsal, last changed 2022-04-11 14:59 by admin.

Pull Requests
URL Status Linked Edit
PR 30068 merged pablogsal, 2021-12-12 05:31
PR 30069 merged miss-islington, 2021-12-12 07:07
PR 30074 merged pablogsal, 2021-12-12 15:59
Messages (4)
msg408361 - (view) Author: Pablo Galindo Salgado (pablogsal) * (Python committer) Date: 2021-12-12 05:29
Python3.9 shows:

 ../3.9/python /bin/ls
SyntaxError: Non-UTF-8 code starting with '\xfc' in file /bin/ls on line 2, but no encoding declared; see https://python.org/dev/peps/pep-0263/ for detail

while 3.10 shows:

 python /bin/ls
  File "/bin/ls", line 0

SyntaxError: unknown parsing error
msg408366 - (view) Author: Pablo Galindo Salgado (pablogsal) * (Python committer) Date: 2021-12-12 07:07
New changeset 4325a766f5f603ef6dfb8c4d5798e5e73cb5efd5 by Pablo Galindo Salgado in branch 'main':
bpo-46054: Fix parsing error when parsing non-utf8 characters in source files (GH-30068)
https://github.com/python/cpython/commit/4325a766f5f603ef6dfb8c4d5798e5e73cb5efd5
msg408398 - (view) Author: Pablo Galindo Salgado (pablogsal) * (Python committer) Date: 2021-12-12 16:52
New changeset 94483f1e3cec182fabe19268e579f63045bc984a by Miss Islington (bot) in branch '3.10':
bpo-46054: Fix parsing error when parsing non-utf8 characters in source files (GH-30068) (GH-30069)
https://github.com/python/cpython/commit/94483f1e3cec182fabe19268e579f63045bc984a
msg408399 - (view) Author: Pablo Galindo Salgado (pablogsal) * (Python committer) Date: 2021-12-12 16:53
New changeset c6d1c52c166968fb722ae26d44aa2c1c030dc613 by Pablo Galindo Salgado in branch 'main':
bpo-46054: Correct non-utf8 character tests in test_exceptions (GH-30074)
https://github.com/python/cpython/commit/c6d1c52c166968fb722ae26d44aa2c1c030dc613
History
Date User Action Args
2022-04-11 14:59:53adminsetgithub: 90212
2021-12-12 16:53:04pablogsalsetmessages: + msg408399
2021-12-12 16:52:53pablogsalsetmessages: + msg408398
2021-12-12 15:59:58pablogsalsetpull_requests: + pull_request28296
2021-12-12 07:07:14pablogsalsetmessages: + msg408366
2021-12-12 07:07:03miss-islingtonsetnosy: + miss-islington
pull_requests: + pull_request28290
2021-12-12 05:31:00pablogsalsetkeywords: + patch
stage: patch review
pull_requests: + pull_request28288
2021-12-12 05:29:47pablogsalcreate