mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 14:28:15 -05:00
ui: Hint at the installation of locale packages and 'GUIX_LOCPATH'.
* guix/ui.scm (install-locale): Hide the "warning: failed to install locale" on Guile 2.2. Add a hint about 'glibc-utf8-locales' and 'GUIX_LOCPATH'.
This commit is contained in:
parent
fc6cbb311c
commit
26db747a86
1 changed files with 15 additions and 2 deletions
17
guix/ui.scm
17
guix/ui.scm
|
@ -421,8 +421,21 @@ (define (install-locale)
|
|||
(lambda _
|
||||
(setlocale LC_ALL ""))
|
||||
(lambda args
|
||||
(warning (G_ "failed to install locale: ~a~%")
|
||||
(strerror (system-error-errno args))))))
|
||||
(cond-expand
|
||||
;; Guile 2.2 already emits a warning, so let's not add a second one.
|
||||
(guile-2.2 #t)
|
||||
(else (warning (G_ "failed to install locale: ~a~%")
|
||||
(strerror (system-error-errno args)))))
|
||||
(display-hint (G_ "Consider installing the @code{glibc-utf8-locales} or
|
||||
@code{glibc-locales} package and defining @code{GUIX_LOCPATH}, along these
|
||||
lines:
|
||||
|
||||
@example
|
||||
guix package -i glibc-utf8-locales
|
||||
export GUIX_LOCPATH=\"$HOME/.guix-profile/lib/locale\"
|
||||
@end example
|
||||
|
||||
See the \"Application Setup\" section in the manual, for more info.\n")))))
|
||||
|
||||
(define (initialize-guix)
|
||||
"Perform the usual initialization for stand-alone Guix commands."
|
||||
|
|
Loading…
Reference in a new issue