6 .Nd Create a new locale
10 .Fn newlocale "int mask" "const char * locale" "locale_t base"
14 based off the locale specified by
16 The categories specified by
18 will be replaced to correspond with the named
23 is the logical OR of the following:
24 .Bl -tag -width LC_MONETARY_MASK
25 .It Dv LC_COLLATE_MASK
29 .It Dv LC_MESSAGES_MASK
31 .It Dv LC_MONETARY_MASK
33 .It Dv LC_NUMERIC_MASK
38 The logical OR of all of the above
43 string is typically the name of one of the directories in
44 .Pa /usr/share/locale .
49 then the C locale is used. If
51 is an empty string, then it will look for environment variables:
52 LC_ALL, then LC_* if the corresponding LC_*_MASK bit is set, then
53 the LANG environment variable. If none of these are found, it
54 will default to the C locale.
60 the current locale is used. If
63 .Dv LC_GLOBAL_LOCALE ,
64 the global locale is used.
71 is ignored. In order to create a C
74 .Fn newlocale "LC_ALL_MASK" "NULL" "NULL" .
81 New locales should be freed with