]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
nstrftime: revert size typo non-fix
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 20 Mar 2026 23:24:48 +0000 (16:24 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 20 Mar 2026 23:24:48 +0000 (16:24 -0700)
(Thanks to Bruno Haible.)

ChangeLog
lib/strftime.c

index 1321e3c4f79d66a96b78e4c93fd182a08a595d53..0119962b0e5143f7a5f77826bf295a2beb150fd6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
        * lib/boot-time-aux.h (SIZEOF): Remove; no longer used,
        now that the code uses countof.
 
-       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  <eggert@cs.ucla.edu>
 
        stdbit-h: don’t generate some dummy .o files
index 2872355b7839bb2f34fc57f8f671d79dfc15fc6d..5a3544674e2cbf8a877bdf6beec5d3192987569f 100644 (file)
@@ -878,12 +878,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 L_("Wednesday")] =
+static CHAR_T const c_weekday_names[][sizeof "Wednesday"] =
   {
     L_("Sunday"), L_("Monday"), L_("Tuesday"), L_("Wednesday"),
     L_("Thursday"), L_("Friday"), L_("Saturday")
   };
-static CHAR_T const c_month_names[][sizeof L_("September")] =
+static CHAR_T const c_month_names[][sizeof "September"] =
   {
     L_("January"), L_("February"), L_("March"), L_("April"), L_("May"),
     L_("June"), L_("July"), L_("August"), L_("September"), L_("October"),