Repository navigation
fix(ghidra): encode Java probe output as UTF-8 - #2206
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 62c49e8c10
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
You have good taste in Anime Ha1bara. |
|
Haha, case closed indeed! |
Summary
JAVA_HOMEis read correctly.Fixes #2204
Problem and expected behavior
The probe asks Node to decode Java output as UTF-8, but the JVM's standard streams can use the Windows native encoding unless their encodings are set. A new Issue timeline report demonstrates the result in raw bytes: the environment-derived install path remains valid UTF-8, while the JVM-derived
java.homecontains four U+FFFD replacements for a two-character folder name. The reporter also observesrea analyzefail withprovider_unavailable, while the same JDK works after movingJAVA_HOMEto an ASCII path. The probe should preserve the path and admit the installed full JDK.Change and scope
-Dstdout.encoding=UTF-8and-Dstderr.encoding=UTF-8to the Ghidra installation properties probe.Contract and boundary impact
GhidraInstallation, during Java provider admission.Evidence and regression coverage
npm run test:focused -- src/ghidra/GhidraInstallation.test.ts(46 passed);npm run check:fast(typecheck and lint passed).For evidence-bearing changes: no evidence contract or artifact format changes.
Validation performed
npm ci— passed with Node.js 24.18.0 and npm 11.16.0.npm run test:focused -- src/ghidra/GhidraInstallation.test.ts— 46 passed.npm run check:fast— typecheck and lint passed.Compatibility, safety, and release
Review checklist
type(scope): outcome.