National Language Support (NLS) uses several environment variables to influence the selection of locales. You can set the values of these variables to change search paths for locale information:
The environment variables that affect locale selection can be grouped into three priority classes: high, medium, and low. Environment variables in the high priority class are:
Environment variables in the medium priority class are:
The environment variable in the low priority class is:
When a locale is requested by the setlocale subroutine for a particular category or for all categories, the environment variable settings are queried by their priority level in the following manner:
The following table shows the current setting of the environment variables and the effect of calling setlocale(LC_ALL,""). The last column indicates the locale setting after setlocale(LC_ALL,"") is called.
Environment Variable and Category Names | Value of Environment Variables | Value of Category After Call To setlocale(LC_ALL,"") |
---|---|---|
LC_COLLATE | de_DE | de_DE |
LC_CTYPE | de_DE | de_DE |
LC_MONETARY | en_US | en_US |
LC_NUMERIC | (unset) | da_DK |
LC_TIME | (unset) | da_DK |
LC_MESSAGES | (unset) | da_DK |
LC_ALL | (unset) | (not applicable) |
LANG | da_DK | (not applicable) |