From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH] Gracefully handle incompatible locale data Date: Tue, 13 Oct 2015 16:45:18 +0200 Message-ID: <87si5en7y9.fsf@gnu.org> References: <876132lbic.fsf@gnu.org> <20150922191804.GA13637@domone> <877fnijgin.fsf@gnu.org> <20150922215022.GA27201@domone> <8737y4hkrz.fsf@gnu.org> <20150924082755.GA4767@domone> <87h9mjeqyy.fsf@gnu.org> <5605BA8D.40907@redhat.com> <87h9mh5vgn.fsf@gnu.org> <5609A8E9.7050201@redhat.com> <87io6t1wbu.fsf@gnu.org> <561D078A.5080307@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org In-Reply-To: <561D078A.5080307@redhat.com> (Carlos O'Donell's message of "Tue, 13 Oct 2015 09:30:50 -0400") To: Carlos O'Donell Cc: =?utf-8?B?T25kxZllaiBCw61sa2E=?= , libc-alpha@sourceware.org, guix-devel@gnu.org, Roland McGrath List-Id: guix-devel.gnu.org "Carlos O'Donell" skribis: > On 09/29/2015 04:08 AM, Ludovic Court=C3=A8s wrote: >> "Carlos O'Donell" skribis: [...] >> Apart from that, =E2=80=98localedef --list-archive=E2=80=99 simply opens= the locale >> archive (typically /usr/lib/locale/locale-archive, regardless of the >> =E2=80=98LOCPATH=E2=80=99 environment variable value), so its behavior i= s unchanged. >>=20 >> Am I overlooking something? > > If the locale-archive is upgraded to the new format with LC_COLLATE chang= ed > what happens when you run localedef --list-archive? Does it list zero loc= ales > and exit with an exit code of zero? The patch does not change archive loading; it changes locale data loading, which is unrelated (loadlocale.c vs. loadarchive.c.) > - What does localedef --list-archive return? > > - The new LC_COLLATE format will make it's way into the binary locale a= rchive > and that means glibc can't read the locale-archive? Does it fail? exi= t code? The patch does not change how locale archives are handled. I think we=E2=80=99re confusing locale archive and locale data; or am I sim= ply missing something? :-) Thanks, Ludo=E2=80=99.