summaryrefslogtreecommitdiff
path: root/gnu/system
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2020-11-10 21:49:15 +0100
committerLudovic Courtès <ludo@gnu.org>2020-11-10 21:49:15 +0100
commit000e7a0abc747ab6eb4fc23e80e4e9fbe8e75781 (patch)
tree8f32a37118b6daef4c65474986dbe8117a93cf1a /gnu/system
parent8515ea12d283632e7d0103286e679542d896058b (diff)
vm: expression->derivation-in-linux-vm: Run in a UTF-8 locale.
* gnu/system/vm.scm (expression->derivation-in-linux-vm): Add calls to 'setenv' and 'setlocale'.
Diffstat (limited to 'gnu/system')
-rw-r--r--gnu/system/vm.scm6
1 files changed, 6 insertions, 0 deletions
diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm
index c9580f6e7f..07a59a3cd2 100644
--- a/gnu/system/vm.scm
+++ b/gnu/system/vm.scm
@@ -224,6 +224,12 @@ substitutable."
(use-modules (guix build utils)
(gnu build vm))
+ ;; Allow non-ASCII file names--e.g., 'nss-certs'--to be decoded
+ ;; by 'estimated-partition-size' below.
+ (setenv "GUIX_LOCPATH"
+ #+(file-append glibc-utf8-locales "/lib/locale"))
+ (setlocale LC_ALL "en_US.utf8")
+
(let* ((native-inputs
'#+(list qemu (canonical-package coreutils)))
(linux (string-append