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