This is the mail archive of the
mailing list for the GCC project.
Re: [v3] libstdc++/7811
- From: Matt Austern <austern at apple dot com>
- To: Benjamin Kosnik <bkoz at redhat dot com>
- Cc: Roland McGrath <roland at redhat dot com>, pcarlini at unitus dot it, jakub at redhat dot com, gcc-patches at gcc dot gnu dot org
- Date: Fri, 6 Sep 2002 11:42:32 -0700
- Subject: Re: [v3] libstdc++/7811
On Friday, September 6, 2002, at 11:38 AM, Benjamin Kosnik wrote:
While you're at it, it makes by far the most sense to have
All there is to it is the environment variable checks and in the
most complex case, some simple string operations to create a
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.
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.
It's not just a good idea, it's the law. The C++ Standard requires
std::locale::name() and std::setlocale() to use the same format for
composite locales. This is a nontrivial requirement.