From 1e1b6ce1862b4e245c4f858e08dcdc72b9722e18 Mon Sep 17 00:00:00 2001 From: Vivien Maisonneuve Date: Sun, 27 Oct 2024 15:24:41 +0100 Subject: [PATCH] Set `LC_ALL=C` in test commands (#8606) --- crates/uv/tests/it/common/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/uv/tests/it/common/mod.rs b/crates/uv/tests/it/common/mod.rs index 48708012e..4c845d680 100644 --- a/crates/uv/tests/it/common/mod.rs +++ b/crates/uv/tests/it/common/mod.rs @@ -473,6 +473,11 @@ impl TestContext { command.env(EnvVars::VIRTUAL_ENV, self.venv.as_os_str()); } + if cfg!(unix) { + // Avoid locale issues in tests + command.env("LC_ALL", "C"); + } + if cfg!(all(windows, debug_assertions)) { // TODO(konstin): Reduce stack usage in debug mode enough that the tests pass with the // default windows stack of 1MB