guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/06: self: Provide UTF-8 locales when building the manual.


From: guix-commits
Subject: 01/06: self: Provide UTF-8 locales when building the manual.
Date: Sun, 2 Dec 2018 17:40:05 -0500 (EST)

civodul pushed a commit to branch master
in repository guix.

commit 2d337760501662f9a380a117312934e489bd5f1d
Author: Ludovic Courtès <address@hidden>
Date:   Sun Dec 2 22:53:22 2018 +0100

    self: Provide UTF-8 locales when building the manual.
    
    Fixes <https://bugs.gnu.org/33580>.
    Reported by <address@hidden>.
    
    * guix/self.scm (info-manual)[glibc-utf8-locales]: New variable.
    [build]: Add call to 'setenv' for "GUIX_LOCPATH".
---
 guix/self.scm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/guix/self.scm b/guix/self.scm
index 96fef44..efbf9ec 100644
--- a/guix/self.scm
+++ b/guix/self.scm
@@ -273,6 +273,10 @@ DOMAIN, a gettext domain."
     (module-ref (resolve-interface '(gnu packages graphviz))
                 'graphviz))
 
+  (define glibc-utf8-locales
+    (module-ref (resolve-interface '(gnu packages base))
+                'glibc-utf8-locales))
+
   (define documentation
     (file-append* source "doc"))
 
@@ -336,6 +340,10 @@ DOMAIN, a gettext domain."
           (delete-file-recursively "images")
           (symlink (string-append #$output "/images") "images")
 
+          ;; Provide UTF-8 locales needed by the 'xspara.c' code in makeinfo.
+          (setenv "GUIX_LOCPATH"
+                  #+(file-append glibc-utf8-locales "/lib/locale"))
+
           (for-each (lambda (texi)
                       (unless (string=? "guix.texi" texi)
                         ;; Create 'version-LL.texi'.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]