From owner-freebsd-standards@FreeBSD.ORG Tue Feb 22 02:19:41 2005 Return-Path: Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 326A816A4CE; Tue, 22 Feb 2005 02:19:41 +0000 (GMT) Received: from VARK.MIT.EDU (VARK.MIT.EDU [18.95.3.179]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC60A43D1F; Tue, 22 Feb 2005 02:19:40 +0000 (GMT) (envelope-from das@FreeBSD.ORG) Received: from VARK.MIT.EDU (localhost [127.0.0.1]) by VARK.MIT.EDU (8.13.3/8.13.1) with ESMTP id j1M2Jbjp026508; Mon, 21 Feb 2005 21:19:37 -0500 (EST) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by VARK.MIT.EDU (8.13.3/8.13.1/Submit) id j1M2Jbud026507; Mon, 21 Feb 2005 21:19:37 -0500 (EST) (envelope-from das@FreeBSD.ORG) Date: Mon, 21 Feb 2005 21:19:37 -0500 From: David Schultz To: Giorgos Keramidas Message-ID: <20050222021937.GA26385@VARK.MIT.EDU> Mail-Followup-To: Giorgos Keramidas , freebsd-standards@FreeBSD.ORG References: <200409231600.i8NG0cDt010395@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200409231600.i8NG0cDt010395@freefall.freebsd.org> cc: freebsd-standards@FreeBSD.ORG Subject: Re: bin/72006: floating point formating in non-C locales X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Feb 2005 02:19:41 -0000 Here's a simplified version of what POSIX/C99 say about about the strtod()/*scanf() raised in this PR: 1. They do not recognize thousands' separators in the input. 2. They only understand the decimal point character in the current locale. 3. In locales other than C and POSIX, it's okay to add extensions to recognize additional strings. I believe the present implementation follows the standard. Because of (3), however, it would also be legal to recognize a period in addition to whatever the locale specifies. The real issue is what makes sense from the point of view of having applications work. (From my point of view, it's easier to leave things as they are, since the alternative involves pulling a few files off the vendor branch. But I use en_US, so I don't have this problem.)