janneke pushed a commit to branch core-packages-team
in repository guix.
commit 927ba546c52e999fadbe148823b8301f28a2b9af
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 3ebbd9beae..01a93e78e4 100644
--- a/guix/gexp.scm
+++ b/guix/gexp.scm
@@ -1711,6 +1711,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"))