From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5648 Path: news.gmane.org!not-for-mail From: u-igbb@aetey.se Newsgroups: gmane.linux.lib.musl.general Subject: Re: locale fallback option Date: Sun, 27 Jul 2014 10:45:10 +0200 Message-ID: <20140727084510.GE16795@example.net> References: <20140727080856.GC16795@example.net> <20140727081852.GW4038@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1406450740 9045 80.91.229.3 (27 Jul 2014 08:45:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Jul 2014 08:45:40 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-5653-gllmg-musl=m.gmane.org@lists.openwall.com Sun Jul 27 10:45:30 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1XBK5A-00031L-SF for gllmg-musl@plane.gmane.org; Sun, 27 Jul 2014 10:45:28 +0200 Original-Received: (qmail 10171 invoked by uid 550); 27 Jul 2014 08:45:27 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 10163 invoked from network); 27 Jul 2014 08:45:27 -0000 X-T2-Spam-Status: No, hits=0.8 required=5.0 tests=BAYES_50 Received-SPF: none receiver=mailfe08.swip.net; client-ip=62.210.74.137; envelope-from=u-igbb@aetey.se Content-Disposition: inline In-Reply-To: <20140727081852.GW4038@brightrain.aerifal.cx> User-Agent: Mutt/1.5.23 (2014-03-12) Xref: news.gmane.org gmane.linux.lib.musl.general:5648 Archived-At: On Sun, Jul 27, 2014 at 04:18:52AM -0400, Rich Felker wrote: > > LANG=ts_AB LC_MESSAGES=xyz_AB (or LC_MESSAGES=xyz_ZZ) > > > > if fallback to LANG happens per-item in contrast to per-category. > Per-item is rather > complex and requires having locale objects that are "hybrids" and > having a way to name and identify them (since setlocale has to be able > to return a name for the current setting back to the caller). This looks a way too complicated to be viable. > > Frankly, I think this is about a redesign of the locale system > Yes. The system is largely broken -- it does too little to actually be > useful for serious adaptation to linguistic and cultural conventions > and to support multilingual text data, and it does far too much in the > sense of breaking use of the standard library functions for > information interchange purposes. +1 > For a long time I've wanted to > design and write a very light but powerful library for handling these > things correctly (completely independent of the libc locale system), > but it will probably be a very long time before I get around to doing > a project like that, if ever... You have my sympathy (and empathy). Rune