From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19128 invoked by alias); 27 Nov 2017 08:48:10 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 18698 invoked by uid 89); 27 Nov 2017 08:47:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.4 required=5.0 tests=AWL,BAYES_00,DATE_IN_FUTURE_24_48,KB_WAM_FROM_NAME_SINGLEWORD,SPF_PASS,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=Hx-spam-relays-external:!192.168.1.100!, H*RU:!192.168.1.100!, H*r:ip*192.168.1.100, letter X-HELO: smtp.pacific.net Subject: Re: [PATCH] ldconfig: set LC_COLLATE to C To: Aurelien Jarno References: <20171126113204.21318-1-aurelien@aurel32.net> Cc: libc-alpha@sourceware.org From: Rical Jasan Message-ID: <44ff342a-e130-d6ed-c609-9179c78fc58a@pacific.net> Date: Mon, 27 Nov 2017 08:48:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20171126113204.21318-1-aurelien@aurel32.net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-SW-Source: 2017-11/txt/msg00910.txt.bz2 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