mirror of
https://gcc.gnu.org/git/gcc.git
synced 2025-01-02 00:43:44 +08:00
libstdc++: Fix use of newlocale in std:::from_chars
libstdc++-v3/ChangeLog: * src/c++17/floating_from_chars.cc (from_chars_impl): Use LC_ALL_MASK not LC_ALL.
This commit is contained in:
parent
c6ef9d8d3f
commit
4143efc1ee
@ -286,7 +286,7 @@ namespace
|
||||
ptrdiff_t
|
||||
from_chars_impl(const char* str, T& value, errc& ec) noexcept
|
||||
{
|
||||
if (locale_t loc = ::newlocale(LC_ALL, "C", (locale_t)0)) [[likely]]
|
||||
if (locale_t loc = ::newlocale(LC_ALL_MASK, "C", (locale_t)0)) [[likely]]
|
||||
{
|
||||
locale_t orig = ::uselocale(loc);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user