mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-25 20:19:18 -05:00
profiles: Build profiles in a UTF-8 locale.
Fixes <http://bugs.gnu.org/25213>. Reported by Christopher Baines <mail@cbaines.net>. * guix/profiles.scm (profile-derivation)[glibc-utf8-locales]: New variable. [builder]: Use it to set 'LOCPATH'.
This commit is contained in:
parent
580deec5b4
commit
1af0860e8b
1 changed files with 11 additions and 0 deletions
|
@ -939,6 +939,10 @@ (define inputs
|
||||||
extras)
|
extras)
|
||||||
(manifest-inputs manifest)))
|
(manifest-inputs manifest)))
|
||||||
|
|
||||||
|
(define glibc-utf8-locales ;lazy reference
|
||||||
|
(module-ref (resolve-interface '(gnu packages base))
|
||||||
|
'glibc-utf8-locales))
|
||||||
|
|
||||||
(define builder
|
(define builder
|
||||||
(with-imported-modules '((guix build profiles)
|
(with-imported-modules '((guix build profiles)
|
||||||
(guix build union)
|
(guix build union)
|
||||||
|
@ -953,6 +957,13 @@ (define builder
|
||||||
(setvbuf (current-output-port) _IOLBF)
|
(setvbuf (current-output-port) _IOLBF)
|
||||||
(setvbuf (current-error-port) _IOLBF)
|
(setvbuf (current-error-port) _IOLBF)
|
||||||
|
|
||||||
|
;; Some file names (e.g., in 'nss-certs') are UTF-8 encoded so
|
||||||
|
;; install a UTF-8 locale.
|
||||||
|
(setenv "LOCPATH"
|
||||||
|
(string-append #+glibc-utf8-locales "/lib/locale/"
|
||||||
|
#+(package-version glibc-utf8-locales)))
|
||||||
|
(setlocale LC_ALL "en_US.utf8")
|
||||||
|
|
||||||
(define search-paths
|
(define search-paths
|
||||||
;; Search paths of MANIFEST's packages, converted back to their
|
;; Search paths of MANIFEST's packages, converted back to their
|
||||||
;; record form.
|
;; record form.
|
||||||
|
|
Loading…
Reference in a new issue