guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/02: vm: expression->derivation-in-linux-vm: Run in a UTF-8 locale.


From: guix-commits
Subject: 01/02: vm: expression->derivation-in-linux-vm: Run in a UTF-8 locale.
Date: Tue, 10 Nov 2020 18:06:59 -0500 (EST)

civodul pushed a commit to branch version-1.2.0
in repository guix.

commit 000e7a0abc747ab6eb4fc23e80e4e9fbe8e75781
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Tue Nov 10 21:49:15 2020 +0100

    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'.
---
 gnu/system/vm.scm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm
index c9580f6..07a59a3 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]