[v3] libstdc++/7811

Benjamin Kosnik bkoz@redhat.com
Fri Sep 6 11:39:00 GMT 2002



> > >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.
> 
> While you're at it, it makes by far the most sense to have locale::name()
> return the POSIX format for composite names, i.e. "LC_FOO=x;LC_BAR=y".
> Then, at least in GNU, locale::name() returns something that you can
> pass to C's setlocale, put in the environment to run other programs
> and have them do what you meant, etc.

This is a really good idea. Thanks Roland.

-benjamin



More information about the Gcc-patches mailing list