/*
*******************************************************************************
-* Copyright (C) 1997-2008, International Business Machines Corporation and *
+* Copyright (C) 1997-2009, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*
#include "hash.h"
#include "uresimp.h"
#include "zstrfmt.h"
+#include "ureslocs.h"
// *****************************************************************************
// class DateFormatSymbols
// *****************************************************************************
+
/**
* These are static arrays we use only in the case where we have no
* resource data.
/**
* Use the localeBundle for getting zone GMT formatting patterns
*/
- UResourceBundle *localeBundle = ures_open(NULL, locale.getName(), &status);
- UResourceBundle *zoneStringsArray = ures_getByKeyWithFallback(localeBundle, gZoneStringsTag, NULL, &status);
+ UResourceBundle *zoneBundle = ures_open(U_ICUDATA_ZONE, locale.getName(), &status);
+ UResourceBundle *zoneStringsArray = ures_getByKeyWithFallback(zoneBundle, gZoneStringsTag, NULL, &status);
// load the first data item
UResourceBundle *erasMain = calData.getByKey(gErasTag, status);
} else {
fGmtHourFormatsCount = GMT_HOUR_COUNT;
fGmtHourFormats[GMT_NEGATIVE_HM].setTo(TRUE, sep + 1, -1);
- fGmtHourFormats[GMT_POSITIVE_HM].setTo(FALSE, resStr, sep - resStr);
+ fGmtHourFormats[GMT_POSITIVE_HM].setTo(FALSE, resStr, (int32_t)(sep - resStr));
// CLDR 1.5 does not have GMT offset pattern including second field.
// For now, append "ss" to the end.
ures_close(eraNames);
ures_close(narrowEras);
ures_close(zoneStringsArray);
- ures_close(localeBundle);
+ ures_close(zoneBundle);
}
Locale