CS_LOCALE Structure

A Client-Library application can use a CS_LOCALE structure to set up custom localization values. To do this, the application performs the following:

  1. Allocates a CS_LOCALE structure with cs_loc_alloc.

  2. Loads localization values into the CS_LOCALE structure by calling cs_locale.

  3. Sets the locale at the desired level. The application can:

    • Copy the localization values to a context structure with cs_config

    • Copy the localization values to a connection structure—before the connection is open—with ct_con_props

    • Supply the CS_LOCALE structure as a parameter to a routine that accepts custom localization values (cs_convert, cs_time)

    • Include a pointer to the CS_LOCALE structure in a CS_DATAFMT structure describing a destination program variable (cs_convert, ct_bind)