[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/10: self: Bundle 'glibc-utf8-locales'.
From: |
guix-commits |
Subject: |
03/10: self: Bundle 'glibc-utf8-locales'. |
Date: |
Fri, 15 Feb 2019 19:01:51 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit ba48895899a117d6ace2209c3f54411a4a989133
Author: Ludovic Courtès <address@hidden>
Date: Thu Feb 14 17:41:42 2019 +0100
self: Bundle 'glibc-utf8-locales'.
This minimizes the risk of locale-related warnings, at least for those
who use one of the bundled UTF-8 locales.
* guix/self.scm (guix-command)[glibc-utf8-locales]: New variable.
In program body, set GUIX_LOCPATH.
---
guix/self.scm | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/guix/self.scm b/guix/self.scm
index a45470a..bcf04a1 100644
--- a/guix/self.scm
+++ b/guix/self.scm
@@ -390,6 +390,10 @@ that provide Guile modules."
guile (guile-version (effective-version)))
"Return the 'guix' command such that it adds MODULES and DEPENDENCIES in its
load path."
+ (define glibc-utf8-locales
+ (module-ref (resolve-interface '(gnu packages base))
+ 'glibc-utf8-locales))
+
(define module-directory
;; To minimize the number of 'stat' calls needed to locate a module,
;; create the union of all the module directories.
@@ -410,6 +414,16 @@ load path."
"/site-ccache")
%load-compiled-path))
+ ;; To maximize the chances that locales are set up right
+ ;; out-of-the-box, bundle "common" UTF-8 locales.
+ (let ((locpath (getenv "GUIX_LOCPATH")))
+ (setenv "GUIX_LOCPATH"
+ (string-append (if locpath
+ (string-append locpath ":")
+ "")
+ #$(file-append glibc-utf8-locales
+ "/lib/locale"))))
+
(let ((guix-main (module-ref (resolve-interface '(guix ui))
'guix-main)))
#$(if source
- branch master updated (3a34c9e -> aa71b69), guix-commits, 2019/02/15
- 04/10: packages: Remove duplicates from package cache., guix-commits, 2019/02/15
- 03/10: self: Bundle 'glibc-utf8-locales'.,
guix-commits <=
- 02/10: gnu: guix: Embed 'glibc-utf8-locales'., guix-commits, 2019/02/15
- 01/10: environment: Add '--inherit'., guix-commits, 2019/02/15
- 05/10: gnu: librime: Update to 1.4.0., guix-commits, 2019/02/15
- 08/10: gnu: luakit: Update to 2.1., guix-commits, 2019/02/15
- 06/10: gnu: rime-data: Update to 0.38.20190131., guix-commits, 2019/02/15
- 10/10: gnu: pelican: Update to 4.0.1, guix-commits, 2019/02/15
- 07/10: gnu: ibus-rime: Update to 1.4.0., guix-commits, 2019/02/15
- 09/10: gnu: emacs-cider: Update to 0.20.0, guix-commits, 2019/02/15