Subject: [bug#78482] [PATCH] environment: Set LANG by default.

From: Tomas Volf <[email-masked]>
Date: Sun, 18 May 2025 16:51:48 +0200

* guix/scripts/environment.scm (launch-environment/container): Set LANG to
C.UTF-8 unless already set.

Change-Id: I2dba595c8d5f4e9b45264f8185c72779fead2ce6
---
 guix/scripts/environment.scm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/guix/scripts/environment.scm b/guix/scripts/environment.scm
index 7103fdaf20..79252d111b 100644
--- a/guix/scripts/environment.scm
+++ b/guix/scripts/environment.scm
@@ -923,6 +923,9 @@ (define* (launch-environment/container #:key command bash user user-mappings
                          (setenv variable value)))
                       environ)
 
+            (unless (getenv "LANG")
+              (setenv "LANG" "C.UTF-8"))
+
             (primitive-exit/status
              ;; A container's environment is already purified, so no need to
              ;; request it be purified again.
-- 
2.49.0