From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/12490 Path: news.gmane.org!.POSTED!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: setlocale behavior with 'missing' locales Date: Mon, 12 Feb 2018 15:04:59 -0500 Message-ID: <20180212200459.GM1627@brightrain.aerifal.cx> References: <20171108050338.GL1627@brightrain.aerifal.cx> <20171108052715.GM1627@brightrain.aerifal.cx> <5A08C907.2010209@adelielinux.org> <20171113001544.GZ1627@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1518465827 6118 195.159.176.226 (12 Feb 2018 20:03:47 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 12 Feb 2018 20:03:47 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) To: musl@lists.openwall.com Original-X-From: musl-return-12506-gllmg-musl=m.gmane.org@lists.openwall.com Mon Feb 12 21:03:43 2018 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1elKJs-0008Sl-OC for gllmg-musl@m.gmane.org; Mon, 12 Feb 2018 21:03:20 +0100 Original-Received: (qmail 8105 invoked by uid 550); 12 Feb 2018 20:05:14 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 8026 invoked from network); 12 Feb 2018 20:05:12 -0000 Content-Disposition: inline In-Reply-To: Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:12490 Archived-At: On Mon, Feb 12, 2018 at 12:02:48AM -0600, A. Wilcox wrote: > I'd just like to further note that as of 2.55, the GLib test suite now > fails for the same reason as Perl's (and libunistring, and coreutils, > and libidn, and git, ...): it tries to set LC_COLLATE to en_US, it > "succeeds", then it tries to collate and fails to get the expected result. > > I'm not *quite* to the point where I am going to just LD_PRELOAD a stub > that makes setlocale always fail when running `abuild check`, but I'm > very close. I'm still interested in following up with the idea for solving this, but was hoping for more input on whether it's appropriate. However actually implementing collation table support is a separate issue from fixing the "spurious success" of setlocale, and this breakage would still happen if you have a "real" en_US locale installed. So figuring out how to store collation tables in the locale data is also important here. Rich