public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/wschmidt/heads/builtins3)] libstdc++: Fix use of newlocale in std:::from_chars
@ 2020-08-18 18:19 William Schmidt
  0 siblings, 0 replies; only message in thread
From: William Schmidt @ 2020-08-18 18:19 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:4143efc1eed44050201b20c78d0206bc266e30c4

commit 4143efc1eed44050201b20c78d0206bc266e30c4
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Fri Jul 31 14:36:56 2020 +0100

    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:
---
 libstdc++-v3/src/c++17/floating_from_chars.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libstdc++-v3/src/c++17/floating_from_chars.cc b/libstdc++-v3/src/c++17/floating_from_chars.cc
index 26b69a38521..d52c0a937b9 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);


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-08-18 18:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-18 18:19 [gcc(refs/users/wschmidt/heads/builtins3)] libstdc++: Fix use of newlocale in std:::from_chars William Schmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).