From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: Re: Frequent locales problems for new users Date: Wed, 18 Mar 2020 16:07:22 +0100 Message-ID: <87eetp8zx1.fsf@gnu.org> References: <20200317202843.GA18844@jasmine.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:52669) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jEaI2-00082u-1C for guix-devel@gnu.org; Wed, 18 Mar 2020 11:07:27 -0400 In-Reply-To: <20200317202843.GA18844@jasmine.lan> (Leo Famulari's message of "Tue, 17 Mar 2020 16:28:43 -0400") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane-mx.org@gnu.org Sender: "Guix-devel" To: Leo Famulari Cc: guix-devel@gnu.org Hello! Leo Famulari skribis: > Warning! Locales! New users seem to have trouble with Guix locales every > day. > > I think we can improve the situation. > > First, we can deprecate the glibc-utf8-locales package and not mention > it in the manual section Application Setup. I've seen users think they > had to install it in order to get UTF-8 support. Everyone should be > using glibc-locales. Eventually we can rename it to > 'glibc-locales-for-tests', and hide the package too. Well, we still need to be able to install locales somehow, right? :-) > Second, we need to make sure that guix-install.sh is setting up > GUIX_LOCPATH correctly. I see that the binary tarball's store includes > glibc-utf8-locales, so it should be possible for things to "just work", > ignoring that it's the wrong locales package. Does anyone know any > particular issues with the installer that would cause trouble? =E2=80=98guix-command=E2=80=99 in (guix self) creates a =E2=80=98guix=E2=80= =99 binary where GUIX_LOCPATH points to =E2=80=98glibc-utf8-locales=E2=80=99, always. That means that = =E2=80=98guix pull=E2=80=99 returns a =E2=80=98guix=E2=80=99 program that works fine, provided you use = one of the locales in =E2=80=98glibc-utf8-locales=E2=80=99 *or* you have installed =E2= =80=98glibc-locales=E2=80=99 and set =E2=80=98GUIX_LOCPATH=E2=80=99. The =E2=80=98guix=E2=80=99 binary of the =E2=80=98guix=E2=80=99 package doe= s something similar. These two should already eliminate most problems. Now, we should investigate actual problems to see why they show up precisely (for that we need to see the output of commands, the contents of the .service file, and so on). That will allow us to determine the best course of action. As for =E2=80=98glibc-utf8-locales=E2=80=99 vs. =E2=80=98glibc-locales=E2= =80=99: the reason for choosing the former by default over the latter is size (14=C2=A0MiB vs. 917=C2=A0MiB= ). Perhaps an improvement would be for =E2=80=98glibc-utf8-locales=E2=80=99 to= be more true to its name: to include all the UTF-8 locales glibc supports rather than an arbitrary sample thereof. Thoughts? Ludo=E2=80=99.