Repository navigation
test: read subprocess output as UTF-8 so the suite passes on cp949 consoles - #8
Merged
Merged
Conversation
…nsoles On Korean Windows (cp949) 7 tests failed: the CLI printed emoji and the test's reader thread, decoding with the console codepage, died and returned stdout=None. Tests now read children as UTF-8 and conftest.py asks children for UTF-8 output; tests that pin a console encoding still set their own. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Aq8kkjKAMDjSSK54hcWnuc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by 범후연이 · project thread
Problem
On Korean Windows (cp949), 7 tests failed on main. The CLI prints emoji, and the test decoded the child's output with the console codepage. The reader thread died on byte 0xf0 and the test received
stdout=None. The CLI itself was fine.Change
Test-only; no package code changed.
encoding="utf-8"replacestext=Truein the test subprocess calls.tests/conftest.pysetsPYTHONIOENCODING=utf-8(setdefault) for child processes.Verification
Generated by Claude Code