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:
Jonathan Wakely 2020-07-31 14:36:56 +01:00
parent c6ef9d8d3f
commit 4143efc1ee

View File

@ -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);