services: guix: Run 'guix-daemon' in UTF-8 locale.
Fixes <https://bugs.gnu.org/32942>. Reported by Julien Lepiller <julien@lepiller.eu>. * gnu/services/base.scm (guix-shepherd-service) <start>: In #:environment-variables, add "GUIX_LOCPATH" and "LC_ALL".
This commit is contained in:
parent
1460e77abf
commit
7e4bc21509
|
@ -1604,7 +1604,15 @@ failed to register public key '~a': ~a~%" key status)))))))
|
||||||
'())
|
'())
|
||||||
#$@(if tmpdir
|
#$@(if tmpdir
|
||||||
(list (string-append "TMPDIR=" tmpdir))
|
(list (string-append "TMPDIR=" tmpdir))
|
||||||
'()))
|
'())
|
||||||
|
|
||||||
|
;; Make sure we run in a UTF-8 locale so that 'guix
|
||||||
|
;; offload' correctly restores nars that contain UTF-8
|
||||||
|
;; file names such as 'nss-certs'. See
|
||||||
|
;; <https://bugs.gnu.org/32942>.
|
||||||
|
(string-append "GUIX_LOCPATH="
|
||||||
|
#$glibc-utf8-locales "/lib/locale")
|
||||||
|
"LC_ALL=en_US.utf8")
|
||||||
|
|
||||||
#:log-file #$log-file))
|
#:log-file #$log-file))
|
||||||
(stop #~(make-kill-destructor))))))
|
(stop #~(make-kill-destructor))))))
|
||||||
|
|
Loading…
Reference in New Issue