1 .\" This file is part of the Public Domain C Library (PDCLib).
2 .\" Permission is granted to use, modify, and / or redistribute at will.
10 .Nd Set the application global locale
14 .Fn "char *setlocale" "int category" "const char * locale"
17 The ISO C standards define an application global locale, which all
18 locale-dependent functions implicitly use.
20 may be used to change this locale.
22 The locale is defined to be comprised of several categories; the category
23 parameter specifies which category of the global locale to change, and takes one
24 of the following values:
27 Modifies all categories
29 Changes the string collation order; affects
34 Affects the behaviour of the character handling functions defined in
41 Controls the currency-related information returned by
44 Controls the decimal point character used by the number formatting functions,
45 plus the nonmonetary information returned by
48 Controls the formatting used by the
58 function which controls the locale of the present thread. If the thread locale
59 has been modified using the
61 function, and has not been reset to the global locale by invoking
65 as its parameter, then the
67 function will not affect the result of functions invoked on the current thread.
69 .Sh IMPLEMENTATION NOTES