When an IBM Informix product needs to obtain locale-specific information, it accesses one of the GLS locale files in the following table.
Platform | Locale File |
---|---|
UNIX | $INFORMIXDIR/gls/lcX/lg_tr/codemodf.lco |
Windows | %INFORMIXDIR%\gls\lcX\lg_tr\codemodf.lco |
In these paths, INFORMIXDIR is the environment variable that specifies the directory in which you install the IBM Informix product, and gls is the subdirectory that contains the GLS files. This rest of this section describes the remaining elements in the pathname of GLS locale files.
The subdirectories of the lcX subdirectory, where X represents the version number for the locale object-file format, contain the GLS locale files. These subdirectories have names of the form lg_tr, where lg is the 2-character language name and tr is the 2-character territory name that the locale supports.
The next table shows some languages and territories that IBM Informix products can support, and their associated locale-file subdirectory names.
Each locale file has the following two forms:
This file has the .lc file extension and serves as documentation for the corresponding object file.
IBM Informix products use the object file to obtain locale information quickly. Locale object files have the .lco file extension.
The header of the locale source file (.lc) lists the language, territory, code set, and any optional locale modifier of the locale. A section of the locale source file supports each of the locale categories, unless that category is empty, as the next table shows.
Locale Category | Reference | Locale Category | Reference | |
---|---|---|---|---|
CTYPE | page The CTYPE Category | MONETARY | page The MONETARY Category | |
COLLATION | page The COLLATION Category | TIME | page The TIME Category | |
NUMERIC | page The NUMERIC Category | MESSAGES | page The MESSAGES Category |
To conform to the 8.3 filename.ext restriction on the maximum number of characters in valid filenames and file extensions on DOS systems, a GLS locale file uses a condensed form of the code-set name, codemodf, in its filenames. The 4-character code name of each locale file is the hexadecimal representation of the code-set number for the code set that the locale supports. The 4-character modf name is the optional locale modifier.
For example, the ISO8859-1 code set has an IBM CCSID number of 819 in decimal and 0333 in hexadecimal. Therefore, the 4-character name of a locale source file that supports the ISO8859-1 code set is 0333.lc.
The next table shows some code sets and locale modifiers that IBM Informix products can support, along with their associated locale source filenames.
A French locale that supports the ISO8859-1 code set has a GLS locale that is called 0333.lc file in the fr_fr locale-file subdirectory. The default locale, U.S. English, also uses the ISO8859-1 code set (on UNIX platforms); a locale file that is called 0333.lc is also in the en_us locale-file subdirectory. Because both the French and U.S. English locales support the Windows Code Page 1252, both the fr_fr and en_us locale-file subdirectories contain a 04e4.lc locale file as well.
Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]