aboutsummaryrefslogtreecommitdiff
path: root/manual
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-02-06 04:20:37 +0000
committerUlrich Drepper <drepper@redhat.com>2001-02-06 04:20:37 +0000
commit403cb8a19cb457b7f830520a06b0da5a2b846812 (patch)
tree1e1991305bb711f5d31bc4fc50e417a30d71c3c2 /manual
parent5a35dfca75ee7f2e3b650f2d80a3f1b4802e21e1 (diff)
downloadglibc-403cb8a19cb457b7f830520a06b0da5a2b846812.zip
glibc-403cb8a19cb457b7f830520a06b0da5a2b846812.tar.gz
glibc-403cb8a19cb457b7f830520a06b0da5a2b846812.tar.bz2
Update.
* localedata/Makefile (tests): Add bug-iconv-trans. Define bug-iconv-trans-ENV. * localedata/bug-iconv-trans.c: New file. 2001-02-04 Bruno Haible <haible@clisp.cons.org> * iconv/gconv_trans.c (__gconv_transliterate): Use a temporary output pointer, to avoid accumulating output from incomplete (unsuccessful) transliteration attempts. 2001-02-05 Ulrich Drepper <drepper@redhat.com>
Diffstat (limited to 'manual')
-rw-r--r--manual/locale.texi17
1 files changed, 12 insertions, 5 deletions
diff --git a/manual/locale.texi b/manual/locale.texi
index aecfa35..e540009 100644
--- a/manual/locale.texi
+++ b/manual/locale.texi
@@ -221,8 +221,13 @@ The symbols in this section are defined in the header file @file{locale.h}.
@comment locale.h
@comment ISO
@deftypefun {char *} setlocale (int @var{category}, const char *@var{locale})
-The function @code{setlocale} sets the current locale for
-category @var{category} to @var{locale}.
+The function @code{setlocale} sets the current locale for category
+@var{category} to @var{locale}. A list of all the locales the system
+provides can be created by running
+
+@smallexample
+ locale -a
+@end smallexample
If @var{category} is @code{LC_ALL}, this specifies the locale for all
purposes. The other possible values of @var{category} specify an
@@ -239,9 +244,11 @@ Concatenation}) if you want to save it past any further calls to
@code{setlocale}. (The standard library is guaranteed never to call
@code{setlocale} itself.)
-You should not modify the string returned by @code{setlocale}.
-It might be the same string that was passed as an argument in a
-previous call to @code{setlocale}.
+You should not modify the string returned by @code{setlocale}. It might
+be the same string that was passed as an argument in a previous call to
+@code{setlocale}. One requirement is that the @var{category} must be
+the same in the call the string was returned and the one when the string
+is passed in as @var{locale} parameter.
When you read the current locale for category @code{LC_ALL}, the value
encodes the entire combination of selected locales for all categories.