From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH 0/2] Avoiding incompatible locale data in LOCPATH Date: Mon, 05 Oct 2015 16:38:30 +0200 Message-ID: <87si5pz8gp.fsf@gnu.org> References: <1443736716-8578-1-git-send-email-ludo@gnu.org> <87lhbmqglz.fsf@netris.org> <87eghdcivt.fsf@gnu.org> <87d1wv8uhh.fsf@gnu.org> <87bnceva3d.fsf@netris.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]:40412) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zj6uZ-000822-TF for guix-devel@gnu.org; Mon, 05 Oct 2015 10:38:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zj6uT-0007Z2-U3 for guix-devel@gnu.org; Mon, 05 Oct 2015 10:38:43 -0400 In-Reply-To: <87bnceva3d.fsf@netris.org> (Mark H. Weaver's message of "Sun, 04 Oct 2015 13:04:38 -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.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Mark H Weaver Cc: guix-devel@gnu.org, beffa@ieee.org Mark H Weaver skribis: > ludo@gnu.org (Ludovic Court=C3=A8s) writes: > >> After a lot more thought, I changed my mind. >> >> I realized that with the patch at >> , it=E2=80= =99s OK to >> have, say, >> >> LOCPATH=3D$HOME/.guix-profile/lib/locale/2.22:$HOME/.guix-profile/lib/= locale/2.23 >> >> That way, programs will pick locale data that is compatible; so a 2.23 >> program might pick most of its locale data from the /2.22 directory (if >> they are compatible), and some of them from /2.23 (if the format has >> changed.) > > I'm a bit uncomfortable with this. A few questions: > > * Will your glibc patch reliably ensure that no functionality is lost > because of picking up the wrong version of locales? If locale data is missing or incompatible, =E2=80=98setlocale=E2=80=99 retu= rns ENOENT or EINVAL. That=E2=80=99s the worst that can happen. > * Do we have a mechanism for automatically setting LOCPATH (or > GUIX_LOCPATH) to include all of the available locale versioned > subdirectories? No. This is not a problem on GuixSD because we would populate /run/current-system/locale/{2.22,2.23} by default and rarely need to fiddle with GUIX_LOCPATH. On foreign distros, it means people have to maintain GUIX_LOCPATH by hand; this is already the case, but now they=E2=80=99d have to append =E2= =80=9C/2.22=E2=80=9D and possibly other subdirectories. Ludo=E2=80=99.