From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5630 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 15:14:08 -0400 Message-ID: <20140726191408.GP4038@brightrain.aerifal.cx> References: <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> <20140726182348.GN4038@brightrain.aerifal.cx> <20140726185904.GZ16795@example.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 1406402068 18961 80.91.229.3 (26 Jul 2014 19:14:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 26 Jul 2014 19:14:28 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-5635-gllmg-musl=m.gmane.org@lists.openwall.com Sat Jul 26 21:14:22 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 1XB7QD-0005L7-1v for gllmg-musl@plane.gmane.org; Sat, 26 Jul 2014 21:14:21 +0200 Original-Received: (qmail 27758 invoked by uid 550); 26 Jul 2014 19:14:20 -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 27750 invoked from network); 26 Jul 2014 19:14:20 -0000 Content-Disposition: inline In-Reply-To: <20140726185904.GZ16795@example.net> User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:5630 Archived-At: On Sat, Jul 26, 2014 at 08:59:04PM +0200, u-igbb@aetey.se wrote: > On Sat, Jul 26, 2014 at 02:23:48PM -0400, Rich Felker wrote: > > > 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 > > I think there is some international recommendations which actually > say "either '.' or ',' but not anything else". According to Stephane Chazelas on oss-security (http://www.openwall.com/lists/oss-security/2014/07/21/12), glibc allows '2' as the radix point... This is yet another reason for musl's locale system having an "only allow variations that are necessary" approach: it limits the impact of malicious locale files if a user can somehow trick a privileged process into using one. Rich