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'.
This commit is contained in:
Ludovic Courtès 2020-11-10 21:49:15 +01:00
parent 8515ea12d2
commit 000e7a0abc
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -224,6 +224,12 @@ (define builder
(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