Repository navigation
fix(shell): initialize Windows PowerShell text output as UTF-8 - #563
Merged
Merged
Conversation
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
This was referenced Oct 24, 2026
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.
Issue for this PR
Refs #543
Type of change
What does this PR do?
Initialize Windows PowerShell host stdout/stderr and native-command text piping to UTF-8 without a BOM. Preserve the original command as its own line, shell arguments and exit status. Apply the helper to the core PowerShell argument builder, legacy/direct user-shell PowerShell invocation and V2 Bash execution string. Permission checks, saved command and warnings keep the original user command; shell invocation options remain unchanged.
This is partial coverage of #543, not a complete fix: the cmd encoding path remains outside this patch. The V2 PowerShell Windows runtime path was not exercised locally. The issue must stay open. No claim of actual Windows TUI validation is made.
How did you verify your code works?
Publication-side focused core tests:35passed,1skipped,109assertions. The real PowerShell test was skipped because PowerShell is not installed in this environment. Full legacy shell tests:25passed,71assertions. Formatting and diff whitespace checks pass.
Implementing worker separately reports real PowerShell7.5.4 on Linux with forcedCP1252: regression failed before helper and passed after; its focused core result36passed/115assertions. Worker red/green logs were inspected and match the reported counts; real PowerShell was not independently reproduced here. Worker focused strict helper/test typecheck also passed; that is not full core typecheck. Windows runtime tests are added but were not run locally. Worker core typecheck55s timeout was not a pass. Exact CI and independent review remain required before merge.
Screenshots / recordings
No Windows visual proof available; actual Windows output validation remains required for full issue closure.
Checklist