From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5605 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Locale bikeshed time Date: Fri, 25 Jul 2014 18:32:39 -0400 Message-ID: <20140725223239.GG4038@brightrain.aerifal.cx> References: <20140723095031.GE16795@example.net> <20140723163907.GC11570@brightrain.aerifal.cx> <20140723192503.GG16795@example.net> <20140723210120.GD11570@brightrain.aerifal.cx> <20140724153526.GH16795@example.net> <20140724160150.GA4038@brightrain.aerifal.cx> <20140724201548.GM16795@example.net> <20140724220228.GB4038@brightrain.aerifal.cx> <20140725090649.GN16795@example.net> <20140725201551.GQ16795@example.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1406327580 27429 80.91.229.3 (25 Jul 2014 22:33:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Jul 2014 22:33:00 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-5610-gllmg-musl=m.gmane.org@lists.openwall.com Sat Jul 26 00:32:52 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 1XAo2m-0008Du-7N for gllmg-musl@plane.gmane.org; Sat, 26 Jul 2014 00:32:52 +0200 Original-Received: (qmail 23650 invoked by uid 550); 25 Jul 2014 22:32:51 -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 23638 invoked from network); 25 Jul 2014 22:32:51 -0000 Content-Disposition: inline In-Reply-To: <20140725201551.GQ16795@example.net> User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:5605 Archived-At: On Fri, Jul 25, 2014 at 10:15:51PM +0200, u-igbb@aetey.se wrote: > Replying to myself. > > On Fri, Jul 25, 2014 at 11:06:49AM +0200, u-igbb@aetey.se wrote: > > Returning to the naming. As language-based locales are named > > after languages, it would be nice to name other kinds of locale > > data after their "natural association" too. Then politically-bound > > data could be put into the corresponding "territorial" family: > > > > language ll[l][_TT] > > territory TT[_ll[l]] > > A bad idea, forget it. This would be open to misinterpretation > (which key is "more fundamental" for a certain kind of data, > shall it go to ll_TT or TT_ll ?) Yes, I agree that's a bad idea. > Somewhat cleaner might be: ("zxx" and "ZZ" below are literals) > > no localization C > language[+territory] ll[l][_TT] > purely territorial zxx_TT ("no language" code) While clean and well-defined, I wonder whether zxx_TT is counter-intuitive to most users... > and possibly > no territory-specific stuff included ll[l]_ZZ ("no territory" code) > > The last item would e.g. allow treating ll[l] alone as "including > the most frequently used territorial features for this language" > (like "sv" == "sv_SE"), > but I think this approach would be bad and confusing - such a definition > is not certain nor stable. > > I think that a language code alone should mean "no territory-specific > stuff included" and nothing else. I think that's reasonable. > Then "ll" would be a synonym for "ll_ZZ" and hence "ll_ZZ" will not have > to exist at all. That's definitely nice. > Then the usage would be like > > LANG=de_DE (... "€") > > LANG=sv_SE (decimal comma, "kr") > LANG=sv LC_MONETARY=zxx_SE (decimal point from "C", iso4217 "SEK") Changing the numeric radix point is explicitly not supported. :) LC_NUMERIC is just always C because, well, numbers are numbers, not something to vary by culture, and changing the radix point just breaks parsing and storing data for interchange. LC_MONETARY on the other hand could in principle provide a different monetary radix point, but it's not terribly useful until we get a full-featured strfmon anyway. Rich