Installation guide

in Table 4–1. These tables and variants are provided only to
ensure system compatibility for old programs and should not be
used by new applications.
4.2.1 Setting a Locale
The default system-wide locale for internationalization is the C locale. The
default system-wide locale is the one that the setlocale function uses
when a user does not set the internationalization environment variables,
such as LANG, LC_COLLATE, and so on.
To change the system-wide default locale for Bourne and Korn shell users,
edit the /etc/profile file and include the name of the locale you want to
be the system-wide default. The setlocale function will then use the
locale specified in this file. Those using the C shell can set a system-wide
locale by editing the /etc/csh.login file and including the name of the
locale you want to be the default system-wide locale.
You can set the native locale to any of the locales in the
/usr/lib/nls/loc directory.
To set a locale, assign a locale name to one or more environment variables
in the appropriate shell startup file. The simplest way is to assign a value
to the LANG environment variable because it covers all components of a
locale.
_______________________ Note _______________________
The C locale mentioned in Table 4–1 is the system default. The
C locale specifies U.S. English and uses the 7-bit ASCII codeset.
The main difference between the C locale and the U.S. English
locale (en_US.ISO8859-1) is that the latter has enhanced error
messages.
The following example sets the locale to French for the C shell in which it
is invoked and for all child processes of that shell:
% setenv LANG fr_FR.ISO8859-1
If you want another shell to have a different locale, you can reset the
LANG environment variable in that particular shell. The following example
sets the locale to French for the Korn and Bourne shells:
$ LANG=fr_FR.ISO8859-1
$ export LANG
4–16 Customizing the System Environment