summaryrefslogtreecommitdiff
path: root/gnu/system
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2019-06-17 10:51:49 +0200
committerLudovic Courtès <ludo@gnu.org>2019-06-17 12:36:13 +0200
commited504cafa23c34bfa1823a4d5abf3ad55205484b (patch)
treeda73060dcdea5253068a1bd31ea96b2fb0d1c0b6 /gnu/system
parent123b9c02dddd21b61858fbf01fb356c14f220f21 (diff)
vm: 'system-docker-image' builds in a UTF-8 locale.
Fixes <https://bugs.gnu.org/36215>. Reported by Björn Höfling <bjoern.hoefling@bjoernhoefling.de>. This is a followup to 9c941364bfc0120e3ab5c5c4cc71a9a302d59a2b. * gnu/system/vm.scm (system-docker-image)[build]: Set GUIX_LOCPATH and call 'setlocale'.
Diffstat (limited to 'gnu/system')
-rw-r--r--gnu/system/vm.scm5
1 files changed, 5 insertions, 0 deletions
diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm
index 0d4ed63eec..e7f7d8ca51 100644
--- a/gnu/system/vm.scm
+++ b/gnu/system/vm.scm
@@ -535,6 +535,11 @@ system."
;; Set the SQL schema location.
(sql-schema #$schema)
+ ;; Allow non-ASCII file names--e.g., 'nss-certs'--to be decoded.
+ (setenv "GUIX_LOCPATH"
+ #+(file-append glibc-utf8-locales "/lib/locale"))
+ (setlocale LC_ALL "en_US.utf8")
+
(let* (;; This initializer requires elevated privileges that are
;; not normally available in the build environment (e.g.,
;; it needs to create device nodes). In order to obtain