OSDN Git Service

Fix strftime to use localized month names.
authorEric Fischer <enf@google.com>
Mon, 3 Aug 2009 22:43:18 +0000 (15:43 -0700)
committerEric Fischer <enf@google.com>
Mon, 3 Aug 2009 22:43:18 +0000 (15:43 -0700)
It was using the default locale (capital L) instead of the
current locale (lowercase l).

Bug 2030864

libc/tzcode/strftime.c

index 930ecf4..ab713fb 100644 (file)
@@ -225,12 +225,12 @@ label:
                 if (modifier == '-') {
                     pt = _add((t->tm_mon < 0 ||
                                 t->tm_mon >= MONSPERYEAR) ?
-                                "?" : Locale->standalone_month[t->tm_mon],
+                                "?" : locale->standalone_month[t->tm_mon],
                                 pt, ptlim, modifier);
                 } else {
                     pt = _add((t->tm_mon < 0 ||
                                 t->tm_mon >= MONSPERYEAR) ?
-                                "?" : Locale->month[t->tm_mon],
+                                "?" : locale->month[t->tm_mon],
                                 pt, ptlim, modifier);
                 }
                 continue;