ICU-12614 DateFormatSymbols resource bundle data loading updated to use the ResourceSink: fixed broken build.

X-SVN-Rev: 38962
This commit is contained in:
Felipe Balbontín 2016-07-08 22:19:26 +00:00
parent 3928bf64d7
commit f6b7511c46

View file

@ -2107,10 +2107,10 @@ DateFormatSymbols::initializeData(const Locale& locale, const char *type, UError
// Iterate over the resource bundle data following the fallbacks through different calendar types
UnicodeString calendarType((type != NULL && *type != '\0')? type : gGregorianTag, -1, US_INV);
while (!calendarType.isBogus()) {
int32_t calendarTypeSize = calendarType.length();
char calendarTypeCArray[calendarTypeSize + 1];
calendarType.extract(0, calendarTypeSize, calendarTypeCArray, calendarTypeSize, US_INV);
calendarTypeCArray[calendarTypeSize] = '\0';
CharString calendarTypeBuffer;
calendarTypeBuffer.appendInvariantChars(calendarType, status);
if (U_FAILURE(status)) { return; }
const char *calendarTypeCArray = calendarTypeBuffer.data();
// Enumerate this calendar type. If the calendar is not found fallback to gregorian
UErrorCode oldStatus = status;