summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"))