Skip to content
Snippets Groups Projects
Unverified Commit fe4e770f authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

ui: Attempt to fall back to "en_US.utf8" rather than "C".

* guix/ui.scm (install-locale): Add call to 'setlocale' in 'catch' handler.
parent 739f6309
No related branches found
No related tags found
No related merge requests found
...@@ -494,7 +494,11 @@ (define (install-locale) ...@@ -494,7 +494,11 @@ (define (install-locale)
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."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment