ICU-2943 update to weekday calculation

X-SVN-Rev: 13759
This commit is contained in:
Steven R. Loomis 2003-11-19 05:39:21 +00:00
parent 7864fab41d
commit 11117b20e9

View File

@ -690,6 +690,7 @@ DateFormatSymbols::initializeData(const Locale& locale, const char *type, UError
// fastCopyFrom() - see assignArray comments
fWeekdays[i+1].fastCopyFrom(weekdaysData.getStringEx(i, status));
}
fWeekdaysCount++;
ResourceBundle lsweekdaysData(getData(resource, gDayAbbreviationsTag, type, status));
fShortWeekdaysCount = lsweekdaysData.getSize();
@ -704,8 +705,7 @@ DateFormatSymbols::initializeData(const Locale& locale, const char *type, UError
// fastCopyFrom() - see assignArray comments
fShortWeekdays[i+1].fastCopyFrom(lsweekdaysData.getStringEx(i, status));
}
fWeekdaysCount = fShortWeekdaysCount = 8;
fShortWeekdaysCount++;
// If the locale data does not include new pattern chars, use the defaults
if (fLocalPatternChars.length() < PATTERN_CHARS_LEN) {