* lib/strftime.c (c_weekday_names, c_month_names) [COMPILE_WIDE]: Fix size typo. --- ChangeLog | 6 ++++++ lib/strftime.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog index 1032063da7..4a7e44ce26 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2026-03-20 Paul Eggert <[email protected]> + + nstrftime: fix size typo when compiling for glibc + * lib/strftime.c (c_weekday_names, c_month_names) [COMPILE_WIDE]: + Fix size typo. + 2026-03-16 Paul Eggert <[email protected]> stdbit-h: don’t generate some dummy .o files diff --git a/lib/strftime.c b/lib/strftime.c index f7cf65d541..af96da95e4 100644 --- a/lib/strftime.c +++ b/lib/strftime.c @@ -877,12 +877,12 @@ iso_week_days (int yday, int wday) #if !defined _NL_CURRENT && (HAVE_ONLY_C_LOCALE || (USE_C_LOCALE && !HAVE_STRFTIME_L)) -static CHAR_T const c_weekday_names[][sizeof "Wednesday"] = +static CHAR_T const c_weekday_names[][sizeof L_("Wednesday")] = { L_("Sunday"), L_("Monday"), L_("Tuesday"), L_("Wednesday"), L_("Thursday"), L_("Friday"), L_("Saturday") }; -static CHAR_T const c_month_names[][sizeof "September"] = +static CHAR_T const c_month_names[][sizeof L_("September")] = { L_("January"), L_("February"), L_("March"), L_("April"), L_("May"), L_("June"), L_("July"), L_("August"), L_("September"), L_("October"), -- 2.53.0
