Repository navigation
tests: resolved-JDK java/javac output decoded as UTF-8; guard covers the whole class (Closes #5128) - #5160
Conversation
…ard 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]>
|
No description provided. |
|
No description provided. |
|
PR #5160 @ 6bb4c98: 1 failed check(s) == full-suite part 2/3 (failure) -- real |
…art of #5128) Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
CI shepherd: the head of this PR (f47d6d9) is not the one a maintainer labelled |
|
No description provided. |
|
No description provided. |
Closes #5128. Siblings of #5109 / #5091 / PR #5127.
Class
Test and tool helpers that run a resolved JDK binary (
str(jdk / "java"),jdk / "bin" / "java",_JDK,JAVA_BIN,java_bin,dp.tool(None, "java")) and decode the output with the Windows locale charset.Fix, as in #5127:
javac -encoding UTF-8;java -Dfile.encoding=UTF-8 -Dstdout.encoding=UTF-8; text captures passencoding="utf-8"(thetest_det_programstext=not rawhelpers keep raw bytes, withencoding=None if raw else "utf-8").Checklist (all fixed)
dp.tool(jdk, "java")argv at ~393, found by the new guard)Same mechanism, not on the checklist, also fixed: test_bidi_layout (
-Dfile.encoding), test_dbcs_widths, test_cics_runtimes, test_facade_layout_4449, test_generated_record_layer, test_java_unicode_names, tests/tools/det_survey.py.Guard
test_java_subprocess_utf8.pynow scans everytests/**/*.pyfor the bare, resolved-path (str(x / "java"),x / "bin" / "java"), variable (java,javac) anddp.tool(...)argv forms, with a synthetic-source test so it cannot go vacuous. The old file-list test stays as a floor.Verification
pr_gates --fast: 6/6.pr_gates --ratchets: 7 pass, 0 skipped.🤖 Generated with Claude Code