START_TEST;
int nRetVal = -1;
int32_t nLength = -1;
- int nCapacity = I18N_UNUMBER_SYMBOL_CAPACITY;
+ int nCapacity = -1;
char *pszCountryCode = "US";
- i18n_uchar *pszUcharCountryCode = (i18n_uchar*)calloc(strlen(pszCountryCode) + 1, sizeof(i18n_uchar));
-
+ i18n_uchar *pszUcharCountryCode = (i18n_uchar*)calloc(strlen(pszCountryCode) + 1, sizeof(i18n_uchar));
+ nCapacity = i18n_ustring_get_length(pszUcharCountryCode);
i18n_uchar *pRet = i18n_ustring_copy_ua(pszUcharCountryCode, pszCountryCode);
- if ( pRet == NULL || i18n_ustring_get_length(pszUcharCountryCode) <= 0 )
+ if ( pRet == NULL || i18n_ustring_get_length(pszUcharCountryCode) <= 0 )
{
FPRINTF("\\n[Line : %d][%s] i18n_ustring_copy_ua failed\\n", __LINE__, API_NAMESPACE);
FREE_MEMORY(pszUcharCountryCode);
return 1;
}
-
nLength =i18n_ucalendar_set_timezone(g_hUcalender, pszUcharCountryCode, nCapacity);
CHECK_RETURN_VAL_CLEANUP(nLength, "i18n_ucalendar_set_timezone",FREE_MEMORY(pszUcharCountryCode));
-
+
nRetVal = get_last_result();
PRINT_RESULT_CLEANUP(I18N_ERROR_NONE, nRetVal,"i18n_ucalendar_set_timezone", BaseUtilsGetError(nRetVal),FREE_MEMORY(pszUcharCountryCode));
}
/** @} */
-/** @} */
\ No newline at end of file
+/** @} */