fix: use COMSPEC in Windows unicode shell test (#16665)

## Why

Windows Bazel shell tests launch PowerShell with a curated environment,
so `PATHEXT` may be absent. The existing `unicode_output` test invokes
bare `cmd`, which can fail before the test exercises UTF-8 child-process
output.

## What

- Use `$env:COMSPEC /c echo naïve_café` in the Windows branch of
`unicode_output`.
- Preserve the external child-process path instead of switching the test
to a PowerShell builtin.

## Verification

- `cargo test -p codex-core unicode_output`
This commit is contained in:
Michael Bolin
2026-04-02 23:54:02 -07:00
committed by GitHub
parent b4787bf4c0
commit 14f95db57b

View File

@@ -268,7 +268,7 @@ async fn unicode_output(login: bool) -> anyhow::Result<()> {
// config is actually being set correctly.
let call_id = "unicode_output";
let command = if cfg!(windows) {
"cmd /c echo naïve_café"
"& $env:COMSPEC /c echo naïve_café"
} else {
"echo \"naïve_café\""
};