WARNING! Platform-specific mechanisms for determining a default locale are discussed in the localization chapter of the Open Client/Server Configuration Guide. Client-Library’s localization mechanism is platform-specific, and you must read that chapter to understand how the default locale is determined on your platform.
Typically, an application’s default locale reflects the language or character set of the local environment. The default locale is determined by the value of the CS_LOC_PROP CS-Library context property. A typical application uses a CS_LOCALE structure only if it is working in a language or character set that is different from the context structure’s locale.
For example:
A German application might need to associate a CS_LOCALE structure with a connection structure to receive Client-Library error messages in French.
An application that performs its own character set conversion must initialize a CS_LOCALE structure for use with cs_convert.