This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [v3] libstdc++/7811


On Friday, September 6, 2002, at 11:54 AM, Benjamin Kosnik wrote:


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.
Don't see it specified. Are you referring to std::locale::global?
Yes.  I don't think it's possible to interpret that requirement
as anything but saying that std::locale::name() and
std::setlocale() must use the same format.  OK, that's just
slightly too strong.  More precisely, it implies that the set of
locale names understood by std::locale's constructor
must be a subset of the names understood by std::setlocale().
I think it would be permissible for std::setlocale to
accept names that aren't understood by std::locale's constructor,
but not the converse.

			--Matt

			


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]