Skip to content

fix(powershell): mark tests as explicit UTF-8#26

Merged
OgeonX-Ai merged 1 commit into
mainfrom
codex/fix-ps51-encoding
Jul 13, 2026
Merged

fix(powershell): mark tests as explicit UTF-8#26
OgeonX-Ai merged 1 commit into
mainfrom
codex/fix-ps51-encoding

Conversation

@OgeonX-Ai

@OgeonX-Ai OgeonX-Ai commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Summary\nMarks BOM-less PowerShell files containing non-ASCII characters as UTF-8 with BOM so Windows PowerShell 5.1 parses them deterministically.\n\n## Changes\n- Add UTF-8 BOM encoding without changing script behavior\n- Preserve the existing non-ASCII text exactly\n\n## Why\nPowerShell 5.1 otherwise reads BOM-less scripts through the legacy ANSI/OEM code page, which can corrupt comments, strings, and parser input.\n\n## Validation\n- Parsed every changed script through the PowerShell AST parser\n- Root workspace-health Pester regression suite: 12 passed\n- Git diff whitespace validation passed\n\n## Risks\nEncoding-only change. No runtime logic changed.\n\n## Related\nWorkspace-health non-ascii-ps1 cleanup.\n\n## Reviewer notes\nReview as an encoding-only diff; the visible line replacement is the BOM boundary.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@OgeonX-Ai OgeonX-Ai changed the title Mark PowerShell tests as explicit UTF-8 fix(powershell): mark tests as explicit UTF-8 Jul 13, 2026
@OgeonX-Ai OgeonX-Ai merged commit 1fcd553 into main Jul 13, 2026
4 of 6 checks passed
@OgeonX-Ai OgeonX-Ai deleted the codex/fix-ps51-encoding branch July 13, 2026 06:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants