Next: setlogmask, Previous: setkey, Up: Function Substitutes [Contents][Index]
setlocale
POSIX specification:
http://www.opengroup.org/onlinepubs/9699919799/functions/setlocale.html
Gnulib module: setlocale
Portability problems fixed by Gnulib:
setlocale(category,NULL)
ignores the environment variables LC_ALL
, category
, and
LANG
.
setlocale(LC_ALL,name)
succeeds and sets the LC_CTYPE category to
‘C’ when it does not support the encoding, instead of failing.
setlocale
understands different
locale names, that are not based on ISO 639 language names and ISO 3166 country
names.
Portability problems not fixed by Gnulib:
setlocale(LC_ALL,NULL)
always returns "C"
.