From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jack Hill Subject: Re: warning: setlocale: LC_ALL: cannot change locale on foreign distro Date: Mon, 3 Jun 2019 14:01:50 -0400 (EDT) Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Return-path: Received: from eggs.gnu.org ([209.51.188.92]:55201) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hXrHM-00081M-R8 for help-guix@gnu.org; Mon, 03 Jun 2019 14:01:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hXrHL-0001mU-VU for help-guix@gnu.org; Mon, 03 Jun 2019 14:01:52 -0400 Received: from minsky.hcoop.net ([104.248.1.95]:52594) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hXrHL-0001kD-Ri for help-guix@gnu.org; Mon, 03 Jun 2019 14:01:51 -0400 Received: from marsh.hcoop.net ([45.55.52.66]) by minsky.hcoop.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hXrHK-0005Kn-Sr for help-guix@gnu.org; Mon, 03 Jun 2019 14:01:50 -0400 In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix@gnu.org On Mon, 3 Jun 2019, Jack Hill wrote: > Hello Guix, > > I'm setting up Guix on a foreign distro (CentOS 7). I'm working on getting > locales right per section 2.6.1 of the manual. I have installed the > guix-locales package in buth my user's and root's profile, and have restarted > guix-daemon. However, when I run package installation opterations, I see the > following message, > > ``` > /gnu/store/q19l04vd2za80mk1845pz7r8cz29qk43-bash-minimal-4.4.23/bin/bash: > warning: setlocale: LC_ALL: cannot change locale (en_US.utf8) > ``` There appears to be two things going on here: 1) The default locale in the provided systemd unit, en_US.utf8, is not provided by the glibc-locales package but rather only by the glibc-utf8-locales package. I think the fix for this would be to clarify which package should be installed in root's profile when installing on a systemd foreign distro. 2) The quoting in systemd unit is wrong. Changing ``` Environment=GUIX_LOCPATH='/var/guix/profiles/per-user/root/guix-profile/lib/locale' LC_ALL=en_US.utf8 ``` to ``` Environment='GUIX_LOCPATH=/var/guix/profiles/per-user/root/guix-profile/lib/locale' LC_ALL=en_US.utf8 ``` fixed the problem. I'll open bugs for each of these issues. Best, Jack