janneke pushed a commit to branch core-packages-team
in repository guix.
commit 4fcb5379b8d252090e5206a5655d75286929d840
Author: Tomas Volf <[email protected]>
AuthorDate: Thu Jan 23 23:57:07 2025 +0100
gexp: Attempt to set LC_CTYPE in compiled-modules.
This allows compiling modules with unicode in their names.
* guix/gexp.scm (compiled-modules): Attempt to set LC_CTYPE to C.UTF-8.
Change-Id: Ie92a57fe1c3b45d1c7a5e8865fcf291c5f590c11
Signed-off-by: Janneke Nieuwenhuizen <[email protected]>
---
guix/gexp.scm | 3 +++
1 file changed, 3 insertions(+)
diff --git a/guix/gexp.scm b/guix/gexp.scm
index 30d2a1e5e8..99f2150a46 100644
--- a/guix/gexp.scm
+++ b/guix/gexp.scm
@@ -1701,6 +1701,9 @@ TARGET, a GNU triplet."
(system base target)
(system base compile))
+ ;; Best effort. The locale is not installed when cross-compiling.
+ (false-if-exception (setlocale LC_CTYPE "C.UTF-8"))
+
(define modules
(getenv "modules"))