This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Gracefully handle incompatible locale data
- From: ludo at gnu dot org (Ludovic CourtÃs)
- To: "Carlos O'Donell" <carlos at redhat dot com>
- Cc: OndÅej BÃlka <neleai at seznam dot cz>, libc-alpha at sourceware dot org, guix-devel at gnu dot org, Roland McGrath <roland at hack dot frob dot com>
- Date: Tue, 13 Oct 2015 16:45:18 +0200
- Subject: Re: [PATCH] Gracefully handle incompatible locale data
- Authentication-results: sourceware.org; auth=none
- References: <876132lbic dot fsf at gnu dot org> <20150922191804 dot GA13637 at domone> <877fnijgin dot fsf at gnu dot org> <20150922215022 dot GA27201 at domone> <8737y4hkrz dot fsf at gnu dot org> <20150924082755 dot GA4767 at domone> <87h9mjeqyy dot fsf at gnu dot org> <5605BA8D dot 40907 at redhat dot com> <87h9mh5vgn dot fsf at gnu dot org> <5609A8E9 dot 7050201 at redhat dot com> <87io6t1wbu dot fsf at gnu dot org> <561D078A dot 5080307 at redhat dot com>
"Carlos O'Donell" <carlos@redhat.com> skribis:
> On 09/29/2015 04:08 AM, Ludovic CourtÃs wrote:
>> "Carlos O'Donell" <carlos@redhat.com> skribis:
[...]
>> Apart from that, âlocaledef --list-archiveâ simply opens the locale
>> archive (typically /usr/lib/locale/locale-archive, regardless of the
>> âLOCPATHâ environment variable value), so its behavior is unchanged.
>>
>> Am I overlooking something?
>
> If the locale-archive is upgraded to the new format with LC_COLLATE changed
> what happens when you run localedef --list-archive? Does it list zero locales
> 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 archive
> and that means glibc can't read the locale-archive? Does it fail? exit code?
The patch does not change how locale archives are handled.
I think weâre confusing locale archive and locale data; or am I simply
missing something? :-)
Thanks,
Ludoâ.