Setting the locale
Use the export command to set the locale.
The following command sequence:
LANG=C
export LANG
sets the default locale to C
(that is, C
is
used unless a given variable, such as LC_COLLATE,
is explicitly set to something else).
The following sequence:
LC_ALL=C
export LC_ALL
forcibly sets all the locale variables to C
, regardless
of previous settings.
For a report on the current settings of the locale variables, type locale.