diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2020-07-31 14:36:56 +0100 |
---|---|---|
committer | Giuliano Belinassi <giuliano.belinassi@usp.br> | 2020-08-17 13:20:23 -0300 |
commit | 62a4126874a51e9bc77676a28938e9927db97d75 (patch) | |
tree | 02b81c08094ac4f3ff89d60d776196990ce0f22c | |
parent | 6cb6ed1cde957b3fcd2c72c5d9af104ed8aad813 (diff) | |
download | gcc-62a4126874a51e9bc77676a28938e9927db97d75.zip gcc-62a4126874a51e9bc77676a28938e9927db97d75.tar.gz gcc-62a4126874a51e9bc77676a28938e9927db97d75.tar.bz2 |
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.
-rw-r--r-- | libstdc++-v3/src/c++17/floating_from_chars.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/src/c++17/floating_from_chars.cc b/libstdc++-v3/src/c++17/floating_from_chars.cc index 26b69a3..d52c0a9 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); |