mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 21:59:08 -05:00
gnu: matplotlib: install UTF-8 locale.
* gnu/packages/python.scm (python-matplotlib): Install en_US.UTF-8 locale in install-doc phase to avoid encoding error.
This commit is contained in:
parent
76aae0f96f
commit
6754032f0c
1 changed files with 5 additions and 1 deletions
|
@ -2259,7 +2259,11 @@ (define-public python-matplotlib
|
|||
(info (string-append data "/info"))
|
||||
(html (string-append doc "/html")))
|
||||
(with-directory-excursion "doc"
|
||||
;; Without setting this variable we get an encoding error.
|
||||
;; Install and set UTF-8 locale to avoid an encoding error.
|
||||
(setenv "LOCPATH" (getcwd))
|
||||
(system* "localedef" "--no-archive"
|
||||
"--prefix" (getcwd) "-i" "en_US"
|
||||
"-f" "UTF-8" "./en_US.UTF-8")
|
||||
(setenv "LANG" "en_US.UTF-8")
|
||||
;; Produce pdf in 'A4' format.
|
||||
(substitute* (find-files "." "conf\\.py")
|
||||
|
|
Loading…
Reference in a new issue