function sets the C library's notion
of natural language formatting style
for particular sets of routines.
Each such style is called a
and is invoked using an appropriate name passed as a C string.
function recognizes several categories of routines.
These are the categories and the sets of routines they select:
Set the entire locale generically.
Set a locale for string collation routines.
This controls alphabetic ordering in
Set a locale for the
This controls recognition of upper and lower case,
alphabetic or non-alphabetic characters,
and so on.
Set a locale for message catalogs, see
Set a locale for formatting monetary values;
this affects the
Set a locale for formatting numbers.
This controls the formatting of decimal points
in input and output of floating point numbers
in functions such as
as well as values returned by
Set a locale for formatting dates and times using the
Only three locales are defined by default,
the empty string
which denotes the native environment, and the
locales, which denote the C language environment.
to return the current locale.
By default, C programs start in the
The only function in the library that sets the locale is
the locale is never changed as a side effect of some other routine.
Upon successful completion,
returns the string associated with the specified
for the requested
Fa locale .
and fails to change the locale
if the given combination of
makes no sense.
locale file for the locale
and the category