Gnulib module: setlocale
Portability problems fixed by Gnulib:
setlocale(category,NULL)ignores the environment variables
setlocale(LC_ALL,name)succeeds and sets the LC_CTYPE category to ‘C’ when it does not support the encoding, instead of failing.
setlocaleunderstands 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,"")will only update categories that are deemed appropriate for the
LC_ALLenvironment value, even if there are other categories set to different values in the environment. In addition any value is accepted for
LC_CTYPE, and so NULL is never returned to indicate a failure to set locale. To verify category values, each category must be set individually with