From cae451f17ad683b98dd111e81e417669fa4ab82a Mon Sep 17 00:00:00 2001 From: danielmeppiel Date: Sat, 14 Mar 2026 13:01:13 +0100 Subject: [PATCH] fix(test): set PYTHONUTF8=1 for Windows integration tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Python on Windows defaults to cp1252 for file I/O and stdout, which cannot handle the Unicode content in AGENTS.md and APM's Rich-formatted output. Setting PYTHONUTF8=1 forces UTF-8 everywhere, matching Linux/macOS behavior. This is the holistic fix — rather than adding encoding='utf-8' to every read_text(), subprocess.run(), and print() call. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- scripts/windows/test-integration.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/windows/test-integration.ps1 b/scripts/windows/test-integration.ps1 index b14d267d..aaff0aa8 100644 --- a/scripts/windows/test-integration.ps1 +++ b/scripts/windows/test-integration.ps1 @@ -164,6 +164,7 @@ function Invoke-IntegrationTests { Write-Info " - APM Dependencies with real repositories" $env:APM_E2E_TESTS = "1" + $env:PYTHONUTF8 = "1" Write-Info "Environment:" Write-Host " APM_E2E_TESTS: $env:APM_E2E_TESTS"