Editing the locales.dat File

Make a copy of the original locales.dat file whenever you edit the file, in case you have problems with the resulting edited version.

  1. Using a text editor, such as Notepad, open the locales.dat file copy.
  2. Find the section for Windows, which is enclosed in brackets [NT].
  3. Make sure the section contains an entry for the language (syb_language) and character set (syb_charset) combination you want to use.
    • If an entry does not exist, continue with step 4.

    • If an entry does exist, continue with step 5.

    Note: The value for platform_locale must match the value required by your operating system. If the locales definitions in your system configuration files do not match the Sybase locale definitions, your applications do not run properly.
    For example, for Open Client messages to appear in French, when Adaptive Server is using the ROMAN8 character set, check the locales.dat entries for your platform and look for:
    locale = fr_FR, french, roman8
  4. Add the required entry or modify an existing entry.
  5. Save the changes, if any, and exit the text editor.