Set 'LC_ALL=en_US.utf8' in systemd '.service' files.
authorLudovic Courtès <ludo@gnu.org>
Mon, 13 May 2019 21:42:09 +0000 (23:42 +0200)
committerLudovic Courtès <ludo@gnu.org>
Mon, 13 May 2019 21:46:08 +0000 (23:46 +0200)
Fixes <https://bugs.gnu.org/35671>.

* etc/guix-daemon.service.in (Environment): Quote the 'GUIX_LOCPATH'
value; add 'LC_ALL'.
* etc/guix-publish.service.in (Environment): Likewise.

etc/guix-daemon.service.in
etc/guix-publish.service.in

index 99ec7c4..7b20a91 100644 (file)
@@ -7,7 +7,7 @@ Description=Build daemon for GNU Guix
 
 [Service]
 ExecStart=@localstatedir@/guix/profiles/per-user/root/current-guix/bin/guix-daemon --build-users-group=guixbuild
-Environment=GUIX_LOCPATH=@localstatedir@/guix/profiles/per-user/root/guix-profile/lib/locale
+Environment=GUIX_LOCPATH='@localstatedir@/guix/profiles/per-user/root/guix-profile/lib/locale' LC_ALL=en_US.utf8
 RemainAfterExit=yes
 StandardOutput=syslog
 StandardError=syslog
index 0526f97..e61a031 100644 (file)
@@ -7,7 +7,7 @@ Description=Publish the GNU Guix store
 
 [Service]
 ExecStart=@localstatedir@/guix/profiles/per-user/root/current-guix/bin/guix publish --user=nobody --port=8181
-Environment=GUIX_LOCPATH=@localstatedir@/guix/profiles/per-user/root/guix-profile/lib/locale
+Environment=GUIX_LOCPATH='@localstatedir@/guix/profiles/per-user/root/guix-profile/lib/locale' LC_ALL=en_US.utf8
 RemainAfterExit=yes
 StandardOutput=syslog
 StandardError=syslog