When determining which localization values to use, Client-Library starts at the data-element level and proceeds upward. The order of precedence is:
Data element localization values:
The CS_LOCALE associated with the CS_DATAFMT structure that describes a data element, or
The CS_LOCALE passed to a routine as a parameter.
Connection structure localization values.
Context structure localization values.
Context-level localization values are always defined because when an application allocates a context structure, CS-Library provides the new context with default localization values.
After allocating a context, an application may change its localization values by calling cs_loc_alloc, cs_locale, and cs_config.