ContentsIndexPreviousNext

LC_ALL

This variable supports the transfer of double-byte character variables and string literals and has meaning only on 32-bit Windows systems that support double-byte characters (e.g. Asian Windows machines)It is needed only if you are passing data to a COBOL program from another language, such as Visual Basic, and are using C$GETVARIANT or C$SETVARIANT. By using the LC_ALL configuration variable, you cause the runtime to set the locale to a particular value. There is only one situation in which the runtime detects the machine it is on and automatically sets the appropriate locale value, and that is on Japanese machines. Therefore, you do not need to set this variable on Japanese machines. The runtime automatically sets the locale, LC_ALL, to "Japanese_Japan.932".

The default value for this variable is "C". The C locale assumes that all characters are 1 byte and that their value is always less than 256. The value of LC_ALL is in the format:

language[_country[.code_page]]

or

.code_page

where "language" is one of the supported language strings, "country" is one of the supported country or region strings, and "code_page" is the Windows code page setting for the language and country. "country" and "code_page" are optional. For example, the following are all equivalent:

LC_ALL Japanese
LC_ALL Japanese_Japan
LC_ALL Japanese_Japan.932
LC_ALL .932

For Korean double-byte character support under Windows use:

LC_ALL Korean

For Chinese use:

LC_ALL Chinese

or

LC_ALL Chinese-simplified

or

LC_ALL Chinese-traditional

Check with your software developer for the LC_ALL settings that suit your machine.