summaryrefslogtreecommitdiff
path: root/guix
diff options
context:
space:
mode:
authorTomas Volf <~@wolfsden.cz>2025-01-23 23:57:07 +0100
committerAndreas Enge <andreas@enge.fr>2025-07-18 20:17:27 +0200
commit423be27d967731832380545507efe80a71a2dec1 (patch)
tree3ac7a8e6113e84d169b7aca9f63d022d65174078 /guix
parent843568cabe308391b8c5779f5674db8faff4f998 (diff)
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 <janneke@gnu.org>
Diffstat (limited to 'guix')
-rw-r--r--guix/gexp.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/guix/gexp.scm b/guix/gexp.scm
index e985e6b422..933d1969ca 100644
--- a/guix/gexp.scm
+++ b/guix/gexp.scm
@@ -1715,6 +1715,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"))