ui: Attempt to fall back to "en_US.utf8" rather than "C".
* guix/ui.scm (install-locale): Add call to 'setlocale' in 'catch' handler.
This commit is contained in:
parent
739f630947
commit
fe4e770fc1
1 changed files with 5 additions and 1 deletions
|
@ -494,7 +494,11 @@ guix package -i glibc-utf8-locales
|
||||||
export GUIX_LOCPATH=\"$HOME/.guix-profile/lib/locale\"
|
export GUIX_LOCPATH=\"$HOME/.guix-profile/lib/locale\"
|
||||||
@end example
|
@end example
|
||||||
|
|
||||||
See the \"Application Setup\" section in the manual, for more info.\n")))))
|
See the \"Application Setup\" section in the manual, for more info.\n"))
|
||||||
|
;; We're now running in the "C" locale. Try to install a UTF-8 locale
|
||||||
|
;; instead. This one is guaranteed to be available in 'guix' from 'guix
|
||||||
|
;; pull'.
|
||||||
|
(false-if-exception (setlocale LC_ALL "en_US.utf8")))))
|
||||||
|
|
||||||
(define (initialize-guix)
|
(define (initialize-guix)
|
||||||
"Perform the usual initialization for stand-alone Guix commands."
|
"Perform the usual initialization for stand-alone Guix commands."
|
||||||
|
|
Reference in a new issue