Repository navigation
tests: decode java/javac subprocess output as UTF-8 (agy-authored, Sonnet-checked) (Fixes #5109) - #5127
Merged
Conversation
…5109) Adopt PR #5108 pattern (javac -encoding UTF-8, java -Dfile.encoding=UTF-8 -Dstdout.encoding=UTF-8, capture bytes and decode as UTF-8) in test_cobol_compare.py, test_facade_layout_4449.py, test_time_zones.py, and test_floating_insertion.py to prevent reader thread failures on Windows. Add tests/cobol_mainframe/test_java_subprocess_utf8.py to verify test helpers specify UTF-8 encoding flags and round-trip UTF-8 characters including the not-sign.
30 tasks
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 14, 2026 16:52
Contributor
squid-protocol
enabled auto-merge (squash)
October 14, 2026 17:04
Owner
Author
|
No description provided. |
30 tasks done
squid-protocol
added a commit
that referenced
this pull request
Oct 14, 2026
…the whole class (Closes #5128) (#5160) * tests: resolved-JDK java/javac subprocess output decoded as UTF-8; guard covers the whole class (Part of #5128) Same pattern as #5127 on the str(jdk / "java"), jdk / "bin" / "java", _JDK, JAVA_BIN, java_bin and dp.tool(None, "java") forms: javac -encoding UTF-8, java -Dfile.encoding=UTF-8 -Dstdout.encoding=UTF-8, text captures pass encoding="utf-8". test_java_subprocess_utf8.py now scans every tests/**/*.py for these forms (and argv lists built into a variable via dp.tool), with a synthetic-source self-test so it cannot go vacuous. Co-Authored-By: Claude Opus 5.5 <[email protected]> * tests: the direct-java mutation test expects the UTF-8 flags first (Part of #5128) Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
agy-authored, Sonnet-checked. Test-only; no golden/ledger impact.
Fixes #5109 (siblings of #5091 / #5108).
Design: copy the #5108 pattern:
javac -encoding UTF-8,java -Dfile.encoding=UTF-8 -Dstdout.encoding=UTF-8, capture bytes and.decode("utf-8"), so a non-ASCII byte (e.g. the not sign) no longer breaks the reader thread on Windows.Class table (test helpers running bare
java/javacon PATH):str(jdk / "java")withtext=True(test_det_, test_link_, test_sql_*, test_key_collation, ...) and tests/tools adaptersNew
test_java_subprocess_utf8.py: an AST guard over the literal-java/javactest files, plus a real javac/java round-trip of the not sign and multibyte text.Evidence: 36 tests pass in the 5 touched files;
pr_gates --fast6/6;--ratchets7 pass, 0 skipped.Cross-repo: none.
🤖 Generated with Claude Code