Locating localization information

When determining which localization values to use, Client-Library starts at the data-element level and proceeds upward. The order of precedence is:

  1. 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.

  2. Connection structure localization values.

  3. 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.