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: Sun, 04 Oct 2015 00:20:26 +0200 Message-ID: <87d1wv8uhh.fsf@gnu.org> References: <1443736716-8578-1-git-send-email-ludo@gnu.org> <87lhbmqglz.fsf@netris.org> <87eghdcivt.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]:50038) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZiVKb-0007Vp-1Y for guix-devel@gnu.org; Sat, 03 Oct 2015 18:31:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZiVKa-0001zp-98 for guix-devel@gnu.org; Sat, 03 Oct 2015 18:31:04 -0400 In-Reply-To: <87eghdcivt.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Fri, 02 Oct 2015 18:52:54 +0200") 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 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/loc= ale/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.) We still need =E2=80=98GUIX_LOCPATH=E2=80=99 to avoid the assertion failure= with older libcs, only without the complicated semantics discussed yesterday. The result is in =E2=80=98core-updates=E2=80=99: b6ac545 * gnu: commencement: Remove the tricky locale compatibility handl= ing. f2d7bbb * gnu: glibc: Look for locale data in versioned sub-directories. fbb909a * gnu: glibc: Honor 'GUIX_LOCPATH'. Ludo=E2=80=99.