Title: decoding_fgets() truncates long lines and fails with a SyntaxError("Non-UTF-8 code starting with...") · Issue #59016 · python/cpython · GitHub
Open Graph Title: decoding_fgets() truncates long lines and fails with a SyntaxError("Non-UTF-8 code starting with...") · Issue #59016 · python/cpython
X Title: decoding_fgets() truncates long lines and fails with a SyntaxError("Non-UTF-8 code starting with...") · Issue #59016 · python/cpython
Description: BPO 14811 Nosy @pitrou, @vstinner, @tjguk, @ezio-melotti, @bitdancer, @briancurtin, @hynek, @serhiy-storchaka, @eryksun, @lysnikolaou, @pablogsal, @isidentical Superseder bpo-25643: Python tokenizer rewriting Files t33a.py: test case dem...
Open Graph Description: BPO 14811 Nosy @pitrou, @vstinner, @tjguk, @ezio-melotti, @bitdancer, @briancurtin, @hynek, @serhiy-storchaka, @eryksun, @lysnikolaou, @pablogsal, @isidentical Superseder bpo-25643: Python tokenize...
X Description: BPO 14811 Nosy @pitrou, @vstinner, @tjguk, @ezio-melotti, @bitdancer, @briancurtin, @hynek, @serhiy-storchaka, @eryksun, @lysnikolaou, @pablogsal, @isidentical Superseder bpo-25643: Python tokenize...
Opengraph URL: https://github.com/python/cpython/issues/59016
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"decoding_fgets() truncates long lines and fails with a SyntaxError(\"Non-UTF-8 code starting with...\")","articleBody":"BPO | [14811](https://bugs.python.org/issue14811)\n--- | :---\nNosy | @pitrou, @vstinner, @tjguk, @ezio-melotti, @bitdancer, @briancurtin, @hynek, @serhiy-storchaka, @eryksun, @lysnikolaou, @pablogsal, @isidentical\nSuperseder | \u003cli\u003ebpo-25643: Python tokenizer rewriting\u003c/li\u003e\nFiles | \u003cli\u003e[t33a.py](https://bugs.python.org/file25593/t33a.py \"Uploaded as text/plain at 2012-05-15.04:31:39 by v+python\"): test case demonstrating bug\u003c/li\u003e\u003cli\u003e[detect_truncate.patch](https://bugs.python.org/file25605/detect_truncate.patch \"Uploaded as text/plain at 2012-05-16.07:00:28 by @vstinner\")\u003c/li\u003e\n\n\u003csup\u003e*Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.*\u003c/sup\u003e\n\n\u003cdetails\u003e\u003csummary\u003eShow more details\u003c/summary\u003e\u003cp\u003e\n\nGitHub fields:\n```python\nassignee = None\nclosed_at = \u003cDate 2021-04-13.17:07:04.612\u003e\ncreated_at = \u003cDate 2012-05-15.04:31:40.176\u003e\nlabels = ['interpreter-core', 'type-bug', '3.8', '3.9', 'expert-unicode']\ntitle = 'decoding_fgets() truncates long lines and fails with a SyntaxError(\"Non-UTF-8 code starting with...\")'\nupdated_at = \u003cDate 2021-04-13.23:35:33.078\u003e\nuser = 'https://bugs.python.org/vpython'\n```\n\nbugs.python.org fields:\n```python\nactivity = \u003cDate 2021-04-13.23:35:33.078\u003e\nactor = 'pablogsal'\nassignee = 'none'\nclosed = True\nclosed_date = \u003cDate 2021-04-13.17:07:04.612\u003e\ncloser = 'vstinner'\ncomponents = ['Interpreter Core', 'Unicode']\ncreation = \u003cDate 2012-05-15.04:31:40.176\u003e\ncreator = 'v+python'\ndependencies = []\nfiles = ['25593', '25605']\nhgrepos = []\nissue_num = 14811\nkeywords = ['patch']\nmessage_count = 20.0\nmessages = ['160679', '160686', '160688', '160697', '160701', '160705', '160706', '160708', '160709', '160767', '160772', '160807', '165841', '167154', '390969', '390974', '390975', '390978', '391015', '391017']\nnosy_count = 13.0\nnosy_names = ['pitrou', 'vstinner', 'tim.golden', 'ezio.melotti', 'v+python', 'r.david.murray', 'brian.curtin', 'hynek', 'serhiy.storchaka', 'eryksun', 'lys.nikolaou', 'pablogsal', 'BTaskaya']\npr_nums = []\npriority = 'normal'\nresolution = 'duplicate'\nstage = 'resolved'\nstatus = 'closed'\nsuperseder = '25643'\ntype = 'behavior'\nurl = 'https://bugs.python.org/issue14811'\nversions = ['Python 3.8', 'Python 3.9']\n```\n\n\u003c/p\u003e\u003c/details\u003e\n","author":{"url":"https://github.com/vpython","@type":"Person","name":"vpython"},"datePublished":"2012-05-15T04:31:40.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":20},"url":"https://github.com/59016/cpython/issues/59016"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:45207b8b-9c9f-1b29-1021-f4f954b78ce8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E32C:34B0DF:2B8F680:3AC509D:6A53BBD7 |
| html-safe-nonce | acb7ae668f1e478eeadcc5052f68ed5ddd93ce3c75f2d8fe0320d31fffc59333 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzJDOjM0QjBERjoyQjhGNjgwOjNBQzUwOUQ6NkE1M0JCRDciLCJ2aXNpdG9yX2lkIjoiODYyNTUwNDc3NDE5NDk2OTU1OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2aa18031b927576022f8fc2705bf8c7aa27a3eb666d758d0bc8537d99e3c4a0e |
| hovercard-subject-tag | issue:1198881124 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/59016/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7605c0f16e79759402c645068b1d8a2e7c7e2686a91a050e90bbb2f4dbffd9c2/python/cpython/issues/59016 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7605c0f16e79759402c645068b1d8a2e7c7e2686a91a050e90bbb2f4dbffd9c2/python/cpython/issues/59016 |
| og:image:alt | BPO 14811 Nosy @pitrou, @vstinner, @tjguk, @ezio-melotti, @bitdancer, @briancurtin, @hynek, @serhiy-storchaka, @eryksun, @lysnikolaou, @pablogsal, @isidentical Superseder bpo-25643: Python tokenize... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vpython |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width