This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] ldconfig: set LC_COLLATE to C
- From: Rical Jasan <ricaljasan at pacific dot net>
- To: Aurelien Jarno <aurelien at aurel32 dot net>
- Cc: libc-alpha at sourceware dot org
- Date: Tue, 28 Nov 2017 00:47:19 -0800
- Subject: Re: [PATCH] ldconfig: set LC_COLLATE to C
- Authentication-results: sourceware.org; auth=none
- References: <20171126113204.21318-1-aurelien@aurel32.net>
On 11/26/2017 03:32 AM, Aurelien Jarno wrote:
> ldconfig supports "include" directives and use the glob function to
> process them. The glob function sort entries according to the LC_COLLATE
> category. When using a standard "include /etc/ld.so.conf.d/*.conf" entry
> in /etc/ld.so.conf, the order therefore depends on the locale used to
> ldconfig. Prefixing the files that have to be processed last with "z"
> or "zz" (as it is often used) therefore doesn't work correctly as "z"
> is not always the last letter. For example in the et_EE locale, it is
> sorted after the "s".
Did you mean before the "s"?
But wouldn't the user/admin expect the files to be sorted according to
their locale? If a strict ordering is needed, I would expect numerical
prefixing to be used.
Rical