SETLOCALE (3)
set the current locale.
SYNOPSIS
#include <locale.h>
char *setlocale(int category , const char * locale );
DESCRIPTION
The
setlocale()
function is used to set or query the program's current locale.
If
locale
is not
NULL ,
the program's current locale is modified according to the arguments.
The argument
category
determines which parts of the program's current locale should be modified.
LC_ALL
LC_COLLATE
for regular expression matching (it determines the meaning
of range expressions and equivalence classes) and string collation.
LC_CTYPE
for regular expression matching, character classification, conversion,
case-sensitive comparison, and wide character functions.
LC_MESSAGES
for localizable natural-language messages.
LC_MONETARY
LC_NUMERIC
for number formatting (such as the decimal point and the thousands separator).
LC_TIME
for time and date formatting.
The argument
locale
is a pointer to a character string containing the
required setting of
category .
Such a string is either a well-known constant like "C" or "da_DK"
(see below), or an opaque string that was returned by another call of
setlocale .
If
locale
is
each part of the locale that should be modified is set according to the
environment variables. The details are implementation dependent.
For glibc, first
|