Format of locales file entries  Appendix D: TRS Process User Exits

Appendix C: Localization

How Client-Library and Server-Library set up default localization values

When a Client-Library or Server-Library application calls the CS-Library routine cs_ctx_alloc to allocate a context structure, CS-Library loads default localization information into the new context structure.

To load default localization information, CS-Library follows these steps:

  1. CS-Library looks for a locale name, searching for the following environment variables, in order: LC_ALL and LANG.

  2. CS-Library looks up the locale name in the locales file to determine which language and character set are associated with it.

  3. CS-Library loads localized messages and character set information appropriate to the language and character set determined in step 2.

This process provides the new context structure with all of the localization information that it needs.





Copyright © 2005. Sybase Inc. All rights reserved. Appendix D: TRS Process User Exits

View this book as PDF