If the predefined entries in locales.dat do not meet your needs, use a text editor to edit the file.
WARNING! Before you edit, make a copy of the original locales.dat. The copy will help you solve any problems with the edited version. Also, review the entries for your platform to see if an entry already exists.
You can:
Change the “default” locale definition.
Add a locale definition.
Match a locale name used by non-Sybase software. For example, the Sybase predefined locale name is “fr”:
locale = fr, french, iso_1
If a non-Sybase application requires a value of “french” for the LC_ALL environment variable, change the locale name to:
locale = french, french, iso_1
To add a new entry to locales.dat or to change an existing entry:
Choose a value for locale_name.
Determine the value for language_name.
When a Sybase language module is installed, a subdirectory for the language is created in the locales\message directory of the Sybase directory tree. language_name must correspond to this subdirectory’s name.
Determine the value for charset_name.
When a Sybase language module is installed, subdirectories for each supported character set are created in the charsets directory of the Sybase directory tree. charset_name must correspond to one of these subdirectory names.
Determine the value for sortorder_name if you want a sort order other than binary.
The charsets\charset_name subdirectory contains the sort order (*.srt) files for the character set. sortorder_name must correspond to one of these file names (without the .srt).
In the appropriate platform-specific section of the locales.dat file, enter or change the appropriate entry.
After you make the change:
Update localization environment variables (LC_ALL, LC_CTYPE, LC_MESSAGE, LC_TIME, LANG) as appropriate.
If you have added a new locale name and you want existing applications to use this new name in cs_locale calls, edit and recompile the applications as appropriate.
You need not delete entries from locales.dat, even if applications no longer use them. If you decide to delete an entry, make sure no application uses it.