This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [PATCH] Fix initialization of _M_grouping
On Wed, Jan 30, 2002 at 03:03:22AM +0100, Paolo Carlini wrote:
> Indeed, it passes!!
> ...
> Therefore, it looks like we don't have any other open issue here beyond
> the pending __M_grouping inizialization to "" for named locales with
> _M_thousands_sep = '\0', right?
Indeed, that can be seen as correcting for an unfortunate design error
in locale file formats, influenced by the matching error in the C
library spec. I.e., "no grouping" should have been specified as
determined by an empty grouping string, in which case (and only in
that case) an empty separator string would be allowed. But hindsight
is 20/20, and we must patch around our forbears' mistakes, just as
our descendants will be obliged to patch around ours.
Nathan Myers
ncm at cantrip dot org