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


> 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?

22.1.1.5 - locale static members [lib.locale.statics]

static locale global(const locale& loc);

-1- Sets the global locale to its argument.

-2- Effects: Causes future calls to the constructor locale() to return a
copy of the argument. If the argument has a name, does

  std::setlocale(LC_ALL, loc.name().c_str());

otherwise, the effect on the C locale, if any, is
implementation-defined.


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