From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5626 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Locale bikeshed time Date: Sat, 26 Jul 2014 14:23:48 -0400 Message-ID: <20140726182348.GN4038@brightrain.aerifal.cx> References: <20140724160150.GA4038@brightrain.aerifal.cx> <20140724201548.GM16795@example.net> <20140724220228.GB4038@brightrain.aerifal.cx> <20140725090649.GN16795@example.net> <20140725201551.GQ16795@example.net> <20140725223239.GG4038@brightrain.aerifal.cx> <20140726072502.GR16795@example.net> <20140726080327.GJ4038@brightrain.aerifal.cx> <20140726093805.GS16795@example.net> <20140726174706.GF10402@port70.net> 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 1406399050 18488 80.91.229.3 (26 Jul 2014 18:24:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 26 Jul 2014 18:24:10 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-5631-gllmg-musl=m.gmane.org@lists.openwall.com Sat Jul 26 20:24:02 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 1XB6dW-0002vE-42 for gllmg-musl@plane.gmane.org; Sat, 26 Jul 2014 20:24:02 +0200 Original-Received: (qmail 26484 invoked by uid 550); 26 Jul 2014 18:24:01 -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 26476 invoked from network); 26 Jul 2014 18:24:01 -0000 Content-Disposition: inline In-Reply-To: <20140726174706.GF10402@port70.net> User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:5626 Archived-At: On Sat, Jul 26, 2014 at 07:47:06PM +0200, Szabolcs Nagy wrote: > * u-igbb@aetey.se [2014-07-26 11:38:05 +0200]: > > On Sat, Jul 26, 2014 at 04:03:27AM -0400, Rich Felker wrote: > > > Well, 2/3 of the world's population is in India and China and they all > > > use ".", so I think that pretty much covers the question of which is > > > "more widely used". > > > > Ah indeed. That's a sufficient evidence. > > > > world is about 7G > india+china is about 2.5G > that looks closer to 1/3 than to 2/3 Yes, sorry; I was thinking both were already closer to 2G and was using an old idea (closer to 6G) for world population. So some more work would be needed to get a good estimate. > but using anything other than '.' as the decimal point is broken Agreed. BTW if you support arbitrary radix characters, you should not restrict it to ASCII; this then means the length in bytes of floating point fields varies by locale (currently the only printf specifier where either the contents OR length vary by locale is the nonstandard one, %m) which affects asprintf (right now it's "broken" if it races with setlocale and the format includes %m; I don't know if we care) and the implementation of a lot of other stuff (like wprintf). Rich