From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5617 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 05:25:16 -0400 Message-ID: <20140726092516.GL4038@brightrain.aerifal.cx> References: <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> <20140725223239.GG4038@brightrain.aerifal.cx> <20140726072502.GR16795@example.net> <20140726080327.GJ4038@brightrain.aerifal.cx> <1406365616.6438.98.camel@eris.loria.fr> 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 1406366736 27677 80.91.229.3 (26 Jul 2014 09:25:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 26 Jul 2014 09:25:36 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-5622-gllmg-musl=m.gmane.org@lists.openwall.com Sat Jul 26 11:25: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 1XAyEL-0002Wd-FU for gllmg-musl@plane.gmane.org; Sat, 26 Jul 2014 11:25:29 +0200 Original-Received: (qmail 9233 invoked by uid 550); 26 Jul 2014 09:25:28 -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 9222 invoked from network); 26 Jul 2014 09:25:28 -0000 Content-Disposition: inline In-Reply-To: <1406365616.6438.98.camel@eris.loria.fr> User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:5617 Archived-At: On Sat, Jul 26, 2014 at 11:06:56AM +0200, Jens Gustedt wrote: > Am Samstag, den 26.07.2014, 04:03 -0400 schrieb Rich Felker: > > The problem is that the vast majority of actual printing and parsing > > of floating point numbers is for interchange purposes, not mere visual > > pretty-printing, > > do you have statistics that support that claim? Anecdotes, yes; statistics, no. Some examples that come to mind immediately: - Anything JSON - Text-based 3D model files - Subtitle file timings - Video framerates, aspect ratios, etc. - Input files for scientific and mathematical computing. ... > printing that is really concerned in interchange, should just use the > %a formats. All other formats are intended for human readability. In an ideal world, yes, people would use %a. In practice I don't think I've ever seen it used. :( And the radix point affects %a anyway, which is rather nonsensical, since there's definitely no cultural convention for commas to be used as radix points in hex floats. > > This goes back to the question about modern versus old tradition. > > Alternate radix points are a cultural convention that's (seemingly, > > hopefully) on the way out due to computers and information > > interchange. Maybe in some sense this is cultural imperialism (or just > > globalization or whatnot) > > +1 for imperialism Call it what you like, but lack of a variable LC_NUMERIC has been part of the proposed locale design since the beginning. This isn't something new I'm springing now. The radix point in LC_NUMERIC is also probably the single most-hated part of locale by members of the community who objected to musl having any sort of locale support at all. Rich