janneke pushed a commit to branch core-packages-team in repository guix. commit e701abf9d42bfa49e2753a376614d697607cf4d9 Author: Tomas Volf <~@wolfsden.cz> 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 <jann...@gnu.org> --- guix/gexp.scm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/guix/gexp.scm b/guix/gexp.scm index 15cf13addd..f73b760b8a 100644 --- a/guix/gexp.scm +++ b/guix/gexp.scm @@ -1709,6 +1709,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"))