We're updating the issue view to help you get more done. 

Calendar::createInstance should not return USING_DEFAULT_WARNING

Description

I realized the following code returns U_USING_DEFAULT_WARNING in the return status code.

1 2 UErrorCode status = U_ZERO_ERROR; Calendar *cal = Calendar::createInstance(status);

Calendar constructor initializes week data loded from locale bundles. In many locales, these week data comes from the root bundle. When accessing the data loaded from the root.res, U_USING_DEFAULT_WARNING is set. But I think this is not a good behavior. Of course, the internal API used here - ures_getByKeyWithFallback - is doing the right thing (at least, its comment clearly describe this behavior - U_USING_DEFAULT_WARNING for this case). But I do not think the status should be propageted to upper level for this code path.

Environment

Status

Assignee

Markus Scherer

Reporter

Yoshito Umaoka

tracCc

yoshito

tracCreated

Apr 06, 2009, 4:28 PM

tracOwner

markus

tracProject

ICU4C

tracReporter

yoshito

tracStatus

accepted

Components

Priority

assess