Skip to content

fix: preserve PowerShell installer encoding - #1

Draft
Ahho0927 wants to merge 2 commits into
mainfrom
agent/fix-windows-powershell-encoding
Draft

fix: preserve PowerShell installer encoding#1
Ahho0927 wants to merge 2 commits into
mainfrom
agent/fix-windows-powershell-encoding

Conversation

@Ahho0927

Copy link
Copy Markdown
Owner

What changed

  • Save scripts/install.ps1 with a UTF-8 BOM for Windows PowerShell 5.1.
  • Add a regression test that requires the BOM.
  • Record the fix in the changelog.

Root cause

Windows PowerShell 5.1 interpreted the BOM-less UTF-8 installer using the legacy system code page. Korean messages became mojibake and caused parser errors during the Windows installer integration test.

Impact

The Windows installer remains readable and executable in both Windows PowerShell 5.1 and PowerShell 7. The Windows CI test remains enabled so platform-specific regressions are detected.

Validation

  • go test ./...
  • go test -race ./...
  • go vet ./...
  • git diff --check
  • Verified EF BB BF at the beginning of scripts/install.ps1.

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.

1 participant