This is the mail archive of the
mailing list for the GCC project.
Re: [v3] libstdc++/7811
On Fri, Sep 06, 2002 at 12:53:37AM +0200, Paolo Carlini wrote:
> Roland McGrath wrote:
> >OTOH, the whole shebang is still not rocket science. If libstdc++ were to
> >just replicate the "" resolution logic fully and never pass "" down to libc,
> >it would not be terribly complicated. Regardless of how lame the C++ standard
> >allows it to be, having "" behave identically for C and C++ code is obviously
> >the right thing and doing anything else in GNU is just inane.
> >All there is to it is the environment variable checks and in the
> >most complex case, some simple string operations to create a composite
> >name to return for LC_ALL (presuming the C++ interfaces require that
> >some query for the name of LC_ALL exist).
> Agreed. I can work on this improvement soon.
IMHO this should be moved into some config/os/ctype_noninline.h inline or something
like that, because how composite setlocale strings look like is really
OS specific. The question is whether category names > LC_ALL should
be added to the composite too, but as locale::global calls setlocale(LC_ALL, that_name)
I think it should.