setlocale
=========

POSIX specification:
 http://www.opengroup.org/onlinepubs/9699919799/functions/setlocale.html

Gnulib module: setlocale

Portability problems fixed by Gnulib:

  * On Windows platforms (excluding Cygwin), setlocale(CATEGORY,NULL) ignores the environment variables LC_ALL, CATEGORY, and LANG.

  * On Windows platforms (excluding Cygwin), 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:

  * On Cygwin 1.5.x, which doesn't have locales, setlocale(LC_ALL,NULL) always returns "C".

  * On Cygwin 1.7.0, only the charset portion of a locale designation is honored.

  * On Windows platforms (excluding Cygwin), setlocale(LC_ALL,NAME) succeeds and sets the LC_CTYPE category to C when it does not support the encoding, instead of failing.