mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
build-system/gnu: Set $LC_ALL (or similar) to the chosen locale.
Suggested by Mark H Weaver. * guix/build/utils.scm (locale-category->string): New procedure. * guix/build/gnu-build-system.scm (install-locale): Add 'setenv' call.
This commit is contained in:
parent
7184b4b1bd
commit
251e8b2ee8
2 changed files with 31 additions and 3 deletions
|
@ -106,8 +106,12 @@ chance to be set."
|
|||
(catch 'system-error
|
||||
(lambda ()
|
||||
(setlocale locale-category locale)
|
||||
(format (current-error-port) "using '~a' locale for category ~a~%"
|
||||
locale locale-category)
|
||||
|
||||
;; While we're at it, pass it to sub-processes.
|
||||
(setenv (locale-category->string locale-category) locale)
|
||||
|
||||
(format (current-error-port) "using '~a' locale for category ~s~%"
|
||||
locale (locale-category->string locale-category))
|
||||
#t)
|
||||
(lambda args
|
||||
;; This is known to fail for instance in early bootstrap where locales
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue