Fix strftime to use localized month names.

It was using the default locale (capital L) instead of the
current locale (lowercase l).

Bug 2030864
This commit is contained in:
Eric Fischer 2009-08-03 15:43:18 -07:00
parent 8b09aa39c3
commit d5f72afd49

View 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;