From owner-freebsd-standards Fri Feb 21 12:10:34 2003 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 76E5D37B401; Fri, 21 Feb 2003 12:10:33 -0800 (PST) Received: from HAL9000.homeunix.com (12-233-57-224.client.attbi.com [12.233.57.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id D285743F75; Fri, 21 Feb 2003 12:10:32 -0800 (PST) (envelope-from das@FreeBSD.ORG) Received: from HAL9000.homeunix.com (localhost [127.0.0.1]) by HAL9000.homeunix.com (8.12.6/8.12.5) with ESMTP id h1LKAV9l059880; Fri, 21 Feb 2003 12:10:31 -0800 (PST) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by HAL9000.homeunix.com (8.12.6/8.12.5/Submit) id h1LKAVDo059879; Fri, 21 Feb 2003 12:10:31 -0800 (PST) (envelope-from das@FreeBSD.ORG) Date: Fri, 21 Feb 2003 12:10:31 -0800 From: David Schultz To: Garrett Wollman Cc: Tim Robbins , standards@FreeBSD.ORG Subject: Re: importing gdtoa Message-ID: <20030221201031.GB59752@HAL9000.homeunix.com> Mail-Followup-To: Garrett Wollman , Tim Robbins , standards@FreeBSD.ORG References: <20030221085508.GA55786@HAL9000.homeunix.com> <20030221203916.A40755@dilbert.robbins.dropbear.id.au> <200302211820.h1LIKHhQ013553@khavrinen.lcs.mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200302211820.h1LIKHhQ013553@khavrinen.lcs.mit.edu> Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thus spake Garrett Wollman : > < said: > > > I'll write wcstof() and wcstold() as wrappers around strtof() and > > strtold() and have them ready to commit along with your import > > of gdtoa. > > Is this really the right thing? > > Is there a mbsto*() set of functions as well, or are the strto*() > functions supposed to be able to deal with that? > > We are supposed, I believe, to support arbitrary national digits in > these functions, in addition to the Portable Character Set digits. From the CVS logs for lib/libc/stdlib/strtod.c: ---------------------------- revision 1.12 date: 2001/11/28 03:57:12; author: ache; state: Exp; lines: +23 -23 Allow national (non-ASCII) digits ---------------------------- ... ---------------------------- revision 1.15 date: 2001/11/29 03:03:52; author: ache; state: Exp; lines: +24 -24 Back out national digits support, POSIX explicetely disallows it: The definition of character class digit requires that only ten characters -the ones defining digits- can be specified; alternate digits (for example, Hindi or Kanji) cannot be specified here. However, the encoding may vary if an implementation supports more than one encoding. The definition of character class xdigit requires that the characters included in character class digit are included here also and allows for different symbols for the hexadecimal digits 10 through 15. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message