Skip to content

[3.7] bpo-24214: Fixed the UTF-8 and UTF-16 incremental decoders. (GH-14304) #14369

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

Merged
merged 3 commits into from
Jun 25, 2019

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jun 25, 2019

  • The UTF-8 incremental decoders fails now fast if encounter
    a sequence that can't be handled by the error handler.
  • The UTF-16 incremental decoders with the surrogatepass error
    handler decodes now a lone low surrogate with final=False.
    (cherry picked from commit 894263b)

Co-authored-by: Serhiy Storchaka [email protected]

https://bugs.python.org/issue24214

…-14304)

* The UTF-8 incremental decoders fails now fast if encounter
  a sequence that can't be handled by the error handler.
* The UTF-16 incremental decoders with the surrogatepass error
  handler decodes now a lone low surrogate with final=False.
(cherry picked from commit 894263b)

Co-authored-by: Serhiy Storchaka <[email protected]>
@miss-islington
Copy link
Contributor Author

@serhiy-storchaka: Status check is done, and it's a failure ❌ .

@vstinner vstinner merged commit c755ca8 into python:3.7 Jun 25, 2019
@miss-islington miss-islington deleted the backport-894263b-3.7 branch June 25, 2019 10:29
@vstinner
Copy link
Member

Tests passed, so I merged the PR which was approved by @serhiy-storchaka, to not forget it.

ned-deily pushed a commit to ned-deily/cpython that referenced this pull request Jul 2, 2019
…thonGH-14304) (pythonGH-14369)

* bpo-24214: Fixed the UTF-8 and UTF-16 incremental decoders. (pythonGH-14304)

* The UTF-8 incremental decoders fails now fast if encounter
  a sequence that can't be handled by the error handler.
* The UTF-16 incremental decoders with the surrogatepass error
  handler decodes now a lone low surrogate with final=False.
(cherry picked from commit 894263b)

Co-authored-by: Serhiy Storchaka <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants