gcc/libstdc++-v3/include/std
Jonathan Wakely f8ae6193b7
libstdc++: Fix std::format thousands separators when sign present [PR120548]
The leading sign character should be skipped when deciding whether to
insert thousands separators into a floating-point format.

libstdc++-v3/ChangeLog:

	PR libstdc++/120548
	* include/std/format (__formatter_fp::_M_localize): Do not
	include a leading sign character in the string to be grouped.
	* testsuite/std/format/functions/format.cc: Check grouping when
	sign is present in the output.

Reviewed-by: Tomasz Kamiński <tkaminsk@redhat.com>
(cherry picked from commit 2c3559839d)
2025-06-11 09:01:51 +01:00
..
algorithm Update copyright years. 2023-01-16 11:52:17 +01:00
any Update copyright years. 2023-01-16 11:52:17 +01:00
array libstdc++: Skip redundant assertions in std::array equality [PR106212] 2025-03-31 12:05:17 +01:00
atomic libstdc++: Add missing free functions for atomic_flag [PR103934] 2023-02-13 17:46:59 -08:00
barrier Update copyright years. 2023-01-16 11:52:17 +01:00
bit libstdc++: Do not use compiler built-in in requires-clause 2025-04-02 21:20:10 +01:00
bitset Update copyright years. 2023-01-16 11:52:17 +01:00
charconv libstdc++: Fix <charconv> uses of signed types with <bit> functions 2024-03-01 10:52:11 +00:00
chrono libstdc++: Update tzdata to 2025a 2025-03-31 12:05:18 +01:00
codecvt Update copyright years. 2023-01-16 11:52:17 +01:00
complex libstdc++: Explicitly default some copy ctors and assignments 2023-11-09 08:04:30 +00:00
concepts Update copyright years. 2023-01-16 11:52:17 +01:00
condition_variable Update copyright years. 2023-01-16 11:52:17 +01:00
coroutine libstdc++: Add const to hash<coroutine_handle<P>>::operator() [PR109165] 2023-03-17 20:34:52 +00:00
deque Update copyright years. 2023-01-16 11:52:17 +01:00
execution Update copyright years. 2023-01-16 11:52:17 +01:00
expected libstdc++: Improve static assert messages for monadic operations 2023-11-08 13:16:29 +00:00
filesystem libstdc++: Add @headerfile and @since to doxygen comments [PR40380] 2023-04-28 13:31:52 +01:00
format libstdc++: Fix std::format thousands separators when sign present [PR120548] 2025-06-11 09:01:51 +01:00
forward_list libstdc++: Make std::erase for linked lists convert to bool 2025-03-31 12:22:29 +01:00
fstream Update copyright years. 2023-01-16 11:52:17 +01:00
functional libstdc++: Replace std::result_of with __invoke_result_t [PR114394] 2024-12-07 10:08:51 +00:00
future libstdc++: Fix some -Wmismatched-tags warnings 2023-11-09 08:04:31 +00:00
iomanip libstdc++: Add @headerfile and @since to doxygen comments [PR40380] 2023-04-28 13:31:52 +01:00
ios Update copyright years. 2023-01-16 11:52:17 +01:00
iosfwd Update copyright years. 2023-01-16 11:52:17 +01:00
iostream libstdc++: Fix iostream init for Clang on darwin [PR110432] 2023-07-19 20:34:56 +01:00
istream Update copyright years. 2023-01-16 11:52:17 +01:00
iterator libstdc++: [_GLIBCXX_DEBUG] Define __cpp_lib_null_iterators 2024-03-20 19:06:03 +01:00
latch Update copyright years. 2023-01-16 11:52:17 +01:00
limits Update copyright years. 2023-01-16 11:52:17 +01:00
list libstdc++: Make std::erase for linked lists convert to bool 2025-03-31 12:22:29 +01:00
locale Update copyright years. 2023-01-16 11:52:17 +01:00
map Update copyright years. 2023-01-16 11:52:17 +01:00
memory libstdc++: Harmonize <version> and other headers 2023-04-05 18:45:14 +02:00
memory_resource libstdc++: Improve doxygen docs for <memory_resource> 2023-04-28 13:31:53 +01:00
mutex libstdc++: Fix uses of non-reserved names in headers 2023-02-16 10:24:45 +00:00
numbers libstdc++: Minor fixes to doxygen comments 2023-04-28 13:33:29 +01:00
numeric libstdc++: Fix std::ranges::iota is not included in numeric [PR108760] 2025-04-16 20:13:35 +01:00
optional libstdc++: Reverse arguments in constraint for std::optional's <=> [PR104606] 2024-05-02 11:57:47 +01:00
ostream Update copyright years. 2023-01-16 11:52:17 +01:00
queue Update copyright years. 2023-01-16 11:52:17 +01:00
random Update copyright years. 2023-01-16 11:52:17 +01:00
ranges libstdc++: Fix complexity of drop_view::begin() const [PR112641] 2025-05-27 16:47:33 -04:00
ratio libstdc++: Check for std::ratio in arithmetic and comparisons [PR110593] 2023-07-28 18:30:55 +01:00
regex Update copyright years. 2023-01-16 11:52:17 +01:00
scoped_allocator libstdc++: Fix some -Wmismatched-tags warnings 2023-11-09 08:04:31 +00:00
semaphore Update copyright years. 2023-01-16 11:52:17 +01:00
set Update copyright years. 2023-01-16 11:52:17 +01:00
shared_mutex libstdc++: Fix exception thrown by std::shared_lock::unlock() [PR112089] 2023-11-08 13:16:28 +00:00
source_location Update copyright years. 2023-01-16 11:52:17 +01:00
span libstdc++: Skip redundant assertions in std::span construction [PR117966] 2025-03-31 12:05:16 +01:00
spanstream libstdc++: Fix -Wsystem-headers warnings 2022-11-08 17:35:15 +00:00
sstream libstdc++: Define std::basic_stringbuf::view() for old std::string ABI 2023-02-02 16:57:27 +00:00
stack Update copyright years. 2023-01-16 11:52:17 +01:00
stacktrace libstdc++: Fix std::basic_stracktrace to not assume allocators throw std::bad_alloc 2025-03-31 12:05:17 +01:00
stdexcept Update copyright years. 2023-01-16 11:52:17 +01:00
stdfloat Update copyright years. 2023-01-16 11:52:17 +01:00
stop_token libstdc++: Avoid -Wmaybe-uninitialized warning in std::stop_source [PR109339] 2023-03-31 14:20:52 +01:00
streambuf Update copyright years. 2023-01-16 11:52:17 +01:00
string Update copyright years. 2023-01-16 11:52:17 +01:00
string_view libstdc++: Allow explicit conversion of string views with different traits 2024-02-08 12:17:43 +00:00
syncstream libstdc++: Remove noexcept from std::osyncstream::operator= 2024-02-08 12:17:43 +00:00
system_error libstdc++: Use strerror_r in std::generic_category()::message(int) [PR110133] 2023-12-06 09:47:27 +00:00
thread Update copyright years. 2023-01-16 11:52:17 +01:00
tuple libstdc++: Add missing std::tuple constructor [PR114147] 2024-03-16 10:19:29 +00:00
type_traits libstdc++: Replace std::result_of with __invoke_result_t [PR114394] 2024-12-07 10:08:51 +00:00
typeindex Update copyright years. 2023-01-16 11:52:17 +01:00
unordered_map Update copyright years. 2023-01-16 11:52:17 +01:00
unordered_set Update copyright years. 2023-01-16 11:52:17 +01:00
utility libstdc++: Adjust std::in_range template parameter name 2023-11-28 16:59:23 +00:00
valarray libstdc++: Avoid aliasing violation in std::valarray [PR99117] 2024-02-16 15:11:09 +00:00
variant libstdc++: Use reserved form of [[__likely__]] in <variant> 2024-10-04 10:09:14 +01:00
vector Update copyright years. 2023-01-16 11:52:17 +01:00
version libstdc++: Implement P2836R1 changes to const_iterator 2025-05-27 16:12:48 -04:00