[PATCH] Fix initialization of _M_grouping
Nathan Myers
ncm-nospam@cantrip.org
Tue Jan 29 18:36:00 GMT 2002
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
More information about the Libstdc++
mailing list