This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [RFC] libstdc++/5816
- From: Nathan Myers <ncm-nospam at cantrip dot org>
- To: libstdc++ at gcc dot gnu dot org
- Date: Sun, 3 Mar 2002 22:29:58 +0000
- Subject: Re: [RFC] libstdc++/5816
- References: <3C8264DF.16C46073@unitus.it>
On Sun, Mar 03, 2002 at 07:01:03PM +0100, Paolo Carlini wrote:
> To summarize: for doubles the grouping pattern prescribed by the
> concerned locale is *enforced* as soon as the decimal separator
> is found; for integers, it is not enforced if no instances of the
> grouping char are found.
>
> So...
>
> Is it really the behaviour we want?
No.
> I think Peter expected a succesful parsing of doubles in de_DE when
> no grouping chars are found. Some different implementations (Dinkum)
> behave this way. This is what v3 does for integers.
>
> I'm confused as of what the standard prescribes.
There is some dispute about what should happen with doubles for the
case of formatting, because of a one-word typo which Dinkumware chose
to implement (apparently just because it was less work), and which the
LWG has failed thus far to fix just because Dinkumware has threatened
to refuse to implement it. The final resolution will almost certainly
permit applying grouping on doubles, although, if the LWG is particularly
craven that day, it might not require it.
No such ambiguity about parsing doubles has been reported. The standard
is clear that parsing must read grouping characters and check grouping,
and that if no grouping characters are seen, no grouping check is applied.
Thanks to Paolo for catching this one.
Nathan Myers
ncm at cantrip dot org