From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Locales Date: Thu, 27 Nov 2014 09:04:03 +0100 Message-ID: <87sih5qdcc.fsf@gnu.org> 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]:43836) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xtu3j-0004Vn-Pe for guix-devel@gnu.org; Thu, 27 Nov 2014 03:04:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xtu3a-0000rK-9h for guix-devel@gnu.org; Thu, 27 Nov 2014 03:04:15 -0500 Received: from hera.aquilenet.fr ([2a01:474::1]:41626) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xtu3a-0000qq-40 for guix-devel@gnu.org; Thu, 27 Nov 2014 03:04:06 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 9D443402A for ; Thu, 27 Nov 2014 09:04:04 +0100 (CET) Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 97AWzwh3333p for ; Thu, 27 Nov 2014 09:04:04 +0100 (CET) Received: from pluto (pluto.bordeaux.inria.fr [193.50.110.57]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 65A871093 for ; Thu, 27 Nov 2014 09:04:04 +0100 (CET) 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: Guix-devel Hello, In current =E2=80=98master=E2=80=99, libc builds all the available locales = and carries them with itself (~110 MiB.) In =E2=80=98core-updates=E2=80=99 commit 97e1120, I changed libc to build a= nd install zero locales. Instead, locale definitions that users may want must be specified in the =E2=80=98operating-system=E2=80=99 declaration, in a new =E2=80=98locale-definitions=E2=80=99 field (see commit 598e19d in =E2=80=98= master=E2=80=99.) Locale data is then available in /run/current-system/locale (and people can also use $LOCPATH if needed.) I=E2=80=99ve already noticed that gawk had test failures in the absence of = UTF-8 locales, so commit e9bab1d works around it by explicitly invoking =E2=80=98localedef=E2=80=99. Hopefully such problems will be quite rare an= d can be worked around similarly, on a case by case basis. If it turns out to be not-so-rare, we can add a helper package that contains locale data, or a helper procedure somewhere. Comments welcome! Ludo=E2=80=99.