From: Jonathan Wakely Date: Fri, 31 Jul 2020 13:36:56 +0000 (+0100) Subject: libstdc++: Fix use of newlocale in std:::from_chars X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62a4126874a51e9bc77676a28938e9927db97d75;p=thirdparty%2Fgcc.git 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. --- diff --git a/libstdc++-v3/src/c++17/floating_from_chars.cc b/libstdc++-v3/src/c++17/floating_from_chars.cc index 26b69a385215..d52c0a937b9f 100644 --- a/libstdc++-v3/src/c++17/floating_from_chars.cc +++ b/libstdc++-v3/src/c++17/floating_from_chars.cc @@ -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);