Skip to content

[WIP] Fix captured streams reporting UTF-8 instead of original encoding - #15059

Draft
SemTiOne wants to merge 3 commits into
pytest-dev:mainfrom
SemTiOne:fix/4389-capture-encoding
Draft

SemTiOne wants to merge 3 commits into
pytest-dev:mainfrom
SemTiOne:fix/4389-capture-encoding

Conversation

@SemTiOne

Copy link
Copy Markdown
Contributor

Replacement sys.stdout/sys.stderr report the original stream encoding instead of hardcoded UTF-8.

Differs from #4398: that changed the buffer codec; this only reports the attribute.

Out of scope: actual codec, binary capture, stdin.

Closes #4389.

  • Allow maintainers to push and squash when merging my commits. Please uncheck this if you prefer to squash the commits yourself.

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
@psf-chronographer psf-chronographer Bot added the bot:chronographer:provided (automation) changelog entry is part of PR label Sep 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:chronographer:provided (automation) changelog entry is part of PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

stdout capturing breaks sys.stdout.encoding

1 participant