Open Client and Open Server use environment variables to determine which locale name to look for in locales.dat. Open Client and Open Server always search for the following environment variables:
LC_ALL
LANG, if LC_ALL is not set
When setting up custom localization values, Open Client and Open Server may also search for one or more of the environment variables shown in Table C-1.
Environment variable |
Description |
Used during |
---|---|---|
LC_ALL |
Language, character set, and collating sequence to use for messages, datatype conversions, and sorting. |
Initial localization, custom localization |
LANG |
Language, character set, and collating sequence to use for messages, datatype conversions, and sorting. Open Client and Open Server products search for LANG if they cannot find LC_ALL. |
Initial localization |
LC_COLLATE |
Collating sequence (sort order) to use when sorting and comparing character data. |
Custom localization |
LC_CTYPE |
Character set to use for datatype conversions. |
Custom localization |
LC_MESSAGE |
Language to use for messages. |
Custom localization |
LC_TIME |
Date and time data representation to use for a datetime string, such as date and time formats, names in the native language, and month and day abbreviations. |
Custom localization |
See the Open Client and Open Server International Developers Guide for more information about what environment variables an application uses during custom localization.
Before running a localized application:
Verify that locales.dat contains an entry which reflects the localization values the application uses. If it does not, add an appropriate entry.
Verify that the localization files that your application uses are installed:
Localized message files are located in the $SYBASE/locales/message directory.
Collating sequence files are located in the $SYBASE/charsets directory.
All Open Client and Open Server products include files to support at least one language and one or more character sets and collating sequences (sort orders). During installation, these files are loaded into the $SYBASE directory structure in the appropriate locations. When configuring an Open Client or Open Server application, you must verify that the previous directories contain the correct files for your site and application.