Repository navigation
fix(install): no byte-order mark reaches a program install.ps1 runs under Windows PowerShell 5.1 with a UTF-8 console - #1105
Merged
David-Noble-at-work merged 4 commits intoOct 20, 2026
Conversation
David-Noble-at-work
deleted the
fix/1104-install-ps1-s-programs-read-a
branch
October 20, 2026 18:12
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.
Summary
Lane 57 of #949: a defect lane 30 (#1103) merged.
install.ps1runs (install.ps1's programs read a byte-order mark from their closed standard input under Windows PowerShell 5.1 with a UTF-8 console #1104).EF BB BFfrom the standard input install.ps1 narrates, fails and runs programs as the PowerShell style guide's section 7 says #1044 closed for it, before the end of that input.ProcessStartInfohas noStandardInputEncoding.Invoke-NativeCommandnow sets UTF-8 without a preamble for that moment and restores the caller's encoding in afinally. The code page is 65001 throughout, so section 7's rule never to change it holds.cmd /c ... < NUL, you answered: "Implement your solution."docs/plans/fix/1104-install-ps1-s-programs-read-a.md.Resolves #1104
Test plan
46122426'sinstall.ps1under 5.1, the stdin check fails with "stdin read: 3", as on CI's runners.239,187,191before the fix and nothing after, under 5.1;Test-PowerShell.ps1: no findingsmake test-raceandmake test-scenarioinstall.ps1legs under 5.1 and 7 on amd64 and arm64Written with AI assistance.
Signed-off-by: David Noble [email protected]
Assisted-by: Claude Code
Time
Computed by the algorithm of noblefactor-ops#188 at merge.