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>
This commit is contained in:
Tomas Volf 2025-01-23 23:57:07 +01:00 committed by Andreas Enge
parent 843568cabe
commit 423be27d96
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -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"))