Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Feb 2003 12:10:31 -0800
From:      David Schultz <das@FreeBSD.ORG>
To:        Garrett Wollman <wollman@lcs.mit.edu>
Cc:        Tim Robbins <tjr@FreeBSD.ORG>, standards@FreeBSD.ORG
Subject:   Re: importing gdtoa
Message-ID:  <20030221201031.GB59752@HAL9000.homeunix.com>
In-Reply-To: <200302211820.h1LIKHhQ013553@khavrinen.lcs.mit.edu>
References:  <20030221085508.GA55786@HAL9000.homeunix.com> <20030221203916.A40755@dilbert.robbins.dropbear.id.au> <200302211820.h1LIKHhQ013553@khavrinen.lcs.mit.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
Thus spake Garrett Wollman <wollman@lcs.mit.edu>:
> <<On Fri, 21 Feb 2003 20:39:16 +1100, Tim Robbins <tjr@FreeBSD.ORG> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030221201031.GB59752>