GNU bug report logs - #78482
[PATCH] environment: Set LANG by default.

Previous Next

Package: guix-patches;

Reported by: Tomas Volf <~@wolfsden.cz>

Date: Sun, 18 May 2025 14:53:01 UTC

Severity: normal

Tags: patch

Done: Ekaitz Zarraga <ekaitz <at> elenq.tech>

To reply to this bug, email your comments to 78482 AT debbugs.gnu.org.
There is no need to reopen the bug first.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix <at> cbaines.net, dev <at> jpoiret.xyz, ludo <at> gnu.org, othacehe <at> gnu.org, zimon.toutoune <at> gmail.com, me <at> tobias.gr, guix-patches <at> gnu.org:
bug#78482; Package guix-patches. (Sun, 18 May 2025 14:53:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tomas Volf <~@wolfsden.cz>:
New bug report received and forwarded. Copy sent to guix <at> cbaines.net, dev <at> jpoiret.xyz, ludo <at> gnu.org, othacehe <at> gnu.org, zimon.toutoune <at> gmail.com, me <at> tobias.gr, guix-patches <at> gnu.org. (Sun, 18 May 2025 14:53:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Tomas Volf <~@wolfsden.cz>
To: guix-patches <at> gnu.org
Cc: Tomas Volf <~@wolfsden.cz>
Subject: [PATCH] environment: Set LANG by default.
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





Information forwarded to guix-patches <at> gnu.org:
bug#78482; Package guix-patches. (Tue, 03 Jun 2025 17:32:01 GMT) Full text and rfc822 format available.

Message #8 received at 78482 <at> debbugs.gnu.org (full text, mbox):

From: Ekaitz Zarraga <ekaitz <at> elenq.tech>
To: 78482 <at> debbugs.gnu.org
Cc: Tomas Volf <~@wolfsden.cz>
Subject: Re: [PATCH] environment: Set LANG by default.
Date: Tue, 3 Jun 2025 19:31:23 +0200
Pushed as 5c5c5a6e586923a2a6d9e2991cdc281dd9d0a7ef with a slight change 
in commit message (just the text width).




Reply sent to Ekaitz Zarraga <ekaitz <at> elenq.tech>:
You have taken responsibility. (Tue, 03 Jun 2025 17:32:02 GMT) Full text and rfc822 format available.

Notification sent to Tomas Volf <~@wolfsden.cz>:
bug acknowledged by developer. (Tue, 03 Jun 2025 17:32:02 GMT) Full text and rfc822 format available.

Message #13 received at 78482-done <at> debbugs.gnu.org (full text, mbox):

From: Ekaitz Zarraga <ekaitz <at> elenq.tech>
To: 78482-done <at> debbugs.gnu.org
Cc: Tomas Volf <~@wolfsden.cz>
Subject: Re: [PATCH] environment: Set LANG by default.
Date: Tue, 3 Jun 2025 19:31:48 +0200



This bug report was last modified 10 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.