[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/09: ui: Attempt to fall back to "en_US.utf8" rather than "C".
From: |
guix-commits |
Subject: |
03/09: ui: Attempt to fall back to "en_US.utf8" rather than "C". |
Date: |
Wed, 2 Sep 2020 11:19:26 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit fe4e770fc1a1a0ddc5025ac61d3d960621127fd8
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Wed Sep 2 15:59:09 2020 +0200
ui: Attempt to fall back to "en_US.utf8" rather than "C".
* guix/ui.scm (install-locale): Add call to 'setlocale' in 'catch' handler.
---
guix/ui.scm | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/guix/ui.scm b/guix/ui.scm
index efc3f39..9513f42 100644
--- a/guix/ui.scm
+++ b/guix/ui.scm
@@ -494,7 +494,11 @@ 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")))))
+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)
"Perform the usual initialization for stand-alone Guix commands."
- branch master updated (8ce6f4d -> 2056226), guix-commits, 2020/09/02
- 01/09: substitute: Set LC_MESSAGES to the client's locale, not LC_ALL., guix-commits, 2020/09/02
- 02/09: store: 'set-build-options' sends LC_MESSAGES, not LC_ALL., guix-commits, 2020/09/02
- 03/09: ui: Attempt to fall back to "en_US.utf8" rather than "C".,
guix-commits <=
- 05/09: gnu: Add emacs-next., guix-commits, 2020/09/02
- 07/09: gnu: Add xlsxio, guix-commits, 2020/09/02
- 04/09: gnu: chez-scheme: Install libraries to 'lib/csvX.Y.Z-site', guix-commits, 2020/09/02
- 06/09: gnu: Add gerbil, guix-commits, 2020/09/02
- 08/09: gnu: emacs-calibredb: Update to 2.6.0., guix-commits, 2020/09/02
- 09/09: gnu: Add knockd., guix-commits, 2020/09/02