This is the mail archive of the gcc-help@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: g++ Locale ?? correction


On 2017/5/3 15:09, Xi Ruoyao wrote:
So where did you get the code?  Libstdc++ in current GCC trunk throw
exception for all locales (even if "") except "C".

See <https://github.com/lhmouse/MINGW-packages/tree/master/mingw-w64-gcc-git> for patches and build scripts, most of which are merely forked from MSYS2.

I'll look at the standard.  Maybe upstream libstdc++ need a fix for
"" locale.

See N4618 [locale.cons]/6:

```plaintext
explicit locale(const char* std_name);
6 Remarks: The set of valid string argument values is "C", "", and any implementation-defined values.
```

--
Best regards,
ltpmouse


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