From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Locales not working Date: Wed, 11 Feb 2015 21:39:36 +0100 Message-ID: <87a90kw5br.fsf@gnu.org> References: <20150210180603.GA29701@debian> <20150210183024.GA30000@debian> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53814) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLe4X-0006Xw-GZ for guix-devel@gnu.org; Wed, 11 Feb 2015 15:39:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YLe4T-0002zr-Oo for guix-devel@gnu.org; Wed, 11 Feb 2015 15:39:45 -0500 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:33034) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLe4T-0002zl-La for guix-devel@gnu.org; Wed, 11 Feb 2015 15:39:41 -0500 In-Reply-To: <20150210183024.GA30000@debian> (Andreas Enge's message of "Tue, 10 Feb 2015 19:30:24 +0100") 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.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Andreas Enge Cc: guix-devel@gnu.org Andreas Enge skribis: > The code of glibc states > ;; Installing a locale archive with all the locales is to > ;; expensive (~100 MiB), so we rely on users to install the > ;; locales they really want. > But how do I do that? I wondered if there was an additional "locale" outp= ut > of glibc, but there is not. > > $ guix package -A locale > does not return anything useful. > > There is a section 6.2.6 in the manual, but it only speaks about GSD, > not about Guix inside other systems. Right, Mark reported it as well. The basic idea is that it=E2=80=99s up to you to define $LOCPATH and have it point to a place that contains locale data (info "(libc) Locale Names"). But I think we could provide a =E2=80=98glibc-locales=E2=80=99 package (110= MiB) for those in search of a quick fix on foreign distros. (Time passes...) Commit aee6180c adds =E2=80=98glibc-locales=E2=80=99. You can install it a= nd do: export LOCPATH=3D$HOME/.guix-profile/share/locale though that=E2=80=99s not the most efficient approach space-wise. I would instead recommend using your host libc=E2=80=99s locale data, which should be compatible; something like that (untested): export LOCPATH=3D/usr/share/locale Last, commit d6718df of =E2=80=98core-updates=E2=80=99 adds a search path s= pecification for =E2=80=98LOCPATH=E2=80=99. (Not really useful for profiles since one w= ould need to explicitly install glibc in their profile to get the message about =E2=80=98LOCPATH=E2=80=99.) Ludo=E2=80=99.