Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[3.14] Correctly fold unknown-8bit originating from encoded words. (GH-142517)#143146

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
bitdancer merged 2 commits intopython:3.14frommiss-islington:backport-1e17ccd-3.14
Dec 24, 2025

Conversation

@miss-islington
Copy link
Contributor

The unknown-8bit trick was designed to deal with unknown bytes in an
ASCII message, and it works fine for that. However, I also tried to
extend it to handle bytes that can't be decoded using the charset
specified in an encoded word, and there it fails because there can be
other non-ASCII characters that weresuccessfully decoded. The fix is
simple: do the unknown-8bit encoding using the utf-8 codec. This is
especially appropriate since anyone trying to do recovery on an unknown
byte string will probably attempt utf-8 first.
(cherry picked from commit1e17ccd)

Co-authored-by: R. David Murrayrdmurray@bitdance.com

…-142517)The unknown-8bit trick was designed to deal with unknown bytes in anASCII message, and it works fine for that.  However, I also tried toextend it to handle bytes that can't be decoded using the charsetspecified in an encoded word, and there it fails because there can beother non-ASCII characters that were *successfully* decoded.  The fix issimple: do the unknown-8bit encoding using the utf-8 codec.  This isespecially appropriate since anyone trying to do recovery on an unknownbyte string will probably attempt utf-8 first.(cherry picked from commit1e17ccd)Co-authored-by: R. David Murray <rdmurray@bitdance.com>
…G4hbe.rstCo-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
@bitdancerbitdancer merged commit6809811 intopython:3.14Dec 24, 2025
47 checks passed
@miss-islingtonmiss-islington deleted the backport-1e17ccd-3.14 branchJanuary 2, 2026 16:42
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@StanFromIrelandStanFromIrelandStanFromIreland left review comments

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@miss-islington@StanFromIreland@bitdancer

[8]ページ先頭

©2009-2026 Movatter.jp