Editing locales.dat

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:

To add a new entry to locales.dat or to change an existing entry:

  1. Choose a value for locale_name.

  2. 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.

  3. 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.

  4. 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).

  5. In the appropriate platform-specific section of the locales.dat file, enter or change the appropriate entry.

After you make the change:

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.