The locales file has platform-specific sections, each of which contains entries of the form:
locale = locale_name, language, charset, sortorder
sortorder is an optional field. If not specified, the sort order for the specified locale defaults to binary.
Each entry defines a locale name by associating it with a language, character set, and sort order.
For example, a section of the locales file might contain the following entries:
locale = default, us_english, iso_1, dictionary
locale = fr, french, iso_1, noaccents
locale = japanese.sjis, japanese, sjis
These entries indicate that:
When a locale name of “default” is specified, a language of “us_english,” a character set of “iso_1,” and a sort order of “dictionary” should be used.
When a locale name of “fr” is specified, a language of “french,” a character set of “iso_1,” and a sort order of “noaccents” should be used.
When a locale name of “japanese.sjis” is specified, a language of “japanese,” a character set of “sjis,” and a sort order of “binary” (the default sort order) should be used.
Sybase predefines some locale names by including entries for them in the locales file. If these entries do not meet your needs, you may either modify them or add entries that define new locale names.