environment: Set LANG by default.

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

Change-Id: I2dba595c8d5f4e9b45264f8185c72779fead2ce6
Signed-off-by: Ekaitz Zarraga <ekaitz@elenq.tech>
This commit is contained in:
Tomas Volf 2025-05-18 16:51:48 +02:00 committed by Ekaitz Zarraga
parent 4b9d14378f
commit 5c5c5a6e58
No known key found for this signature in database
GPG key ID: FDB952BD3F7356D6

View file

@ -936,6 +936,9 @@ WHILE-LIST."
(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.