summaryrefslogtreecommitdiff
path: root/doc/posix-functions/setlocale.texi
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2011-02-12 16:45:13 +0100
committerBruno Haible <bruno@clisp.org>2011-02-12 17:06:20 +0100
commit4f1d12a5e3cef3d0da80e63320fcbc4d46a39c14 (patch)
tree1cd1f9b39b11c2ca4e8807de9e984ac46291be55 /doc/posix-functions/setlocale.texi
parentec07f8e14133ce33f800d10d4a585e48e950f24a (diff)
downloadgnulib-4f1d12a5e3cef3d0da80e63320fcbc4d46a39c14.tar.gz
New module 'setlocale'.
* lib/locale.in.h (setlocale): New declaration. * lib/setlocale.c: New file, based on gettext/gettext-runtime/intl/setlocale.c. * m4/setlocale.m4: New file. * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared. (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE. * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE, REPLACE_SETLOCALE. * modules/setlocale: New file. * tests/test-locale-c++.cc: Test the declaration of setlocale. * doc/posix-functions/setlocale.texi: Mention the new module.
Diffstat (limited to 'doc/posix-functions/setlocale.texi')
-rw-r--r--doc/posix-functions/setlocale.texi15
1 files changed, 13 insertions, 2 deletions
diff --git a/doc/posix-functions/setlocale.texi b/doc/posix-functions/setlocale.texi
index f722df004d..6e64584cfb 100644
--- a/doc/posix-functions/setlocale.texi
+++ b/doc/posix-functions/setlocale.texi
@@ -4,10 +4,18 @@
POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/setlocale.html}
-Gnulib module: ---
+Gnulib module: setlocale
Portability problems fixed by Gnulib:
@itemize
+@item
+On Windows platforms (excluding Cygwin), @code{setlocale(@var{category},NULL)}
+ignores the environment variables @code{LC_ALL}, @code{@var{category}}, and
+@code{LANG}.
+@item
+On Windows platforms (excluding Cygwin), @code{setlocale} understands different
+locale names, that are not based on ISO 639 language names and ISO 3166 country
+names.
@end itemize
Portability problems not fixed by Gnulib:
@@ -15,7 +23,10 @@ Portability problems not fixed by Gnulib:
@item
On Cygwin 1.5.x, which doesn't have locales,
@code{setlocale(LC_ALL,NULL)} always returns @code{"C"}.
-
@item
On Cygwin 1.7.0, only the charset portion of a locale designation is honored.
+@item
+On Windows platforms (excluding Cygwin), @code{setlocale(LC_ALL,@var{name})}
+succeeds and sets the LC_CTYPE category to @samp{C} when it does not support
+the encoding, instead of failing.
@end itemize