]> sourceware.org Git - glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Thu, 18 Nov 1999 16:25:42 +0000 (16:25 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 18 Nov 1999 16:25:42 +0000 (16:25 +0000)
1999-11-18  Ulrich Drepper  <drepper@cygnus.com>

* locale/programs/locale.c: Don't handle LC_ALL together with the
other categories when printing the value.
Patch by Akira YOSHIYAMA <yosshy@tkf.att.ne.jp>.

* locale/locale.h: Correct comment about LC_ALL.

ChangeLog
locale/locale.h
locale/programs/locale.c

index 35af1c954933ebbadab3190f7f3e25880c291097..66a3510c7f92d57894951a5793499476a22458d1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+1999-11-18  Ulrich Drepper  <drepper@cygnus.com>
+
+       * locale/programs/locale.c: Don't handle LC_ALL together with the
+       other categories when printing the value.
+       Patch by Akira YOSHIYAMA <yosshy@tkf.att.ne.jp>.
+
+       * locale/locale.h: Correct comment about LC_ALL.
+
 1999-11-17  Ulrich Drepper  <drepper@cygnus.com>
 
        * locale/programs/ld-ctype.c (ctype_output): Correct computation of
index 628a9c6dd548e4e27c422f8d83b3f0b56519ee08..8942d28cad7e0439eb5c167b426b317537d4d02d 100644 (file)
@@ -31,7 +31,7 @@
 __BEGIN_DECLS
 
 /* These are the possibilities for the first argument to setlocale.
-   The code assumes that LC_ALL is the highest value, and zero the lowest.  */
+   The code assumes that the lowest LC_* symbol has the value zero.  */
 #define LC_CTYPE          0
 #define LC_NUMERIC        1
 #define LC_TIME           2
index 775500e44fd8c18362d20cdded086b3e3d927743..36f253aebc0ca027a5782d06048d261c14eb0ae1 100644 (file)
@@ -547,7 +547,8 @@ show_locale_vars (void)
 
   /* Now all categories in an unspecified order.  */
   for (cat_no = 0; cat_no < NCATEGORIES; ++cat_no)
-    get_source (category[cat_no].name);
+    if (cat_no != LC_ALL)
+      get_source (category[cat_no].name);
 
   /* The last is the LC_ALL value.  */
   printf ("LC_ALL=%s\n", lcall ? : "");
This page took 0.052015 seconds and 5 git commands to generate.