public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-4300] libstdc++: Fix format string in StdChronoTimeZoneRulePrinter
@ 2023-09-27 16:14 Jonathan Wakely
0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2023-09-27 16:14 UTC (permalink / raw)
To: gcc-cvs, libstdc++-cvs
https://gcc.gnu.org/g:1fab05a885a308c19cf42b72fd36805ddf27fdc8
commit r14-4300-g1fab05a885a308c19cf42b72fd36805ddf27fdc8
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Wed Sep 27 17:03:51 2023 +0100
libstdc++: Fix format string in StdChronoTimeZoneRulePrinter
libstdc++-v3/ChangeLog:
* python/libstdcxx/v6/printers.py (StdChronoTimeZoneRulePrinter):
Fix incorrect number of replacement fields.
Diff:
---
libstdc++-v3/python/libstdcxx/v6/printers.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libstdc++-v3/python/libstdcxx/v6/printers.py b/libstdc++-v3/python/libstdcxx/v6/printers.py
index c0056de2565..d60c8003a63 100644
--- a/libstdc++-v3/python/libstdcxx/v6/printers.py
+++ b/libstdc++-v3/python/libstdcxx/v6/printers.py
@@ -2215,7 +2215,7 @@ class StdChronoTimeZoneRulePrinter:
day = on['day_of_month']
ordinal_day = '{}{}'.format(day, suffixes.get(day, 'th'))
if kind == 0: # DayOfMonth
- start = '{} {}{}'.format(month, ordinal_day)
+ start = '{} {}'.format(month, ordinal_day)
else:
weekday = weekdays[on['day_of_week']]
if kind == 1: # LastWeekDay
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-09-27 16:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-27 16:14 [gcc r14-4300] libstdc++: Fix format string in StdChronoTimeZoneRulePrinter Jonathan Wakely
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).