summary refs log tree commit diff
path: root/locale
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-04-12 21:39:32 +0000
committerUlrich Drepper <drepper@redhat.com>2000-04-12 21:39:32 +0000
commit92d2e18fa4f031c6a129aa5cfeaef59127ba3b1b (patch)
tree1fac675a302ac3e22a60dd90cf81332db779b776 /locale
parent3ea1b82e6bb75e69f05c3e4c90e21210598b0174 (diff)
downloadglibc-92d2e18fa4f031c6a129aa5cfeaef59127ba3b1b.tar.gz
glibc-92d2e18fa4f031c6a129aa5cfeaef59127ba3b1b.tar.xz
glibc-92d2e18fa4f031c6a129aa5cfeaef59127ba3b1b.zip
Update.
	* locale/programs/locale.c (show_info): Don't try to look into
	data for LC_ALL (there is none).
Diffstat (limited to 'locale')
-rw-r--r--locale/programs/locale.c37
1 files changed, 19 insertions, 18 deletions
diff --git a/locale/programs/locale.c b/locale/programs/locale.c
index 06900a802a..261f7c729b 100644
--- a/locale/programs/locale.c
+++ b/locale/programs/locale.c
@@ -669,31 +669,32 @@ show_info (const char *name)
     }
 
   for (cat_no = 0; cat_no < NCATEGORIES; ++cat_no)
-    {
-      size_t item_no;
-
-      if (strcmp (name, category[cat_no].name) == 0)
-	/* Print the whole category.  */
-	{
-	  if (show_category_name != 0)
-	    puts (category[cat_no].name);
-
-	  for (item_no = 0; item_no < category[cat_no].number; ++item_no)
-	    print_item (&category[cat_no].item_desc[item_no]);
-
-	  return;
-	}
+    if (cat_no != LC_ALL)
+      {
+	size_t item_no;
 
-      for (item_no = 0; item_no < category[cat_no].number; ++item_no)
-	if (strcmp (name, category[cat_no].item_desc[item_no].name) == 0)
+	if (strcmp (name, category[cat_no].name) == 0)
+	  /* Print the whole category.  */
 	  {
 	    if (show_category_name != 0)
 	      puts (category[cat_no].name);
 
-	    print_item (&category[cat_no].item_desc[item_no]);
+	    for (item_no = 0; item_no < category[cat_no].number; ++item_no)
+	      print_item (&category[cat_no].item_desc[item_no]);
+
 	    return;
 	  }
-    }
+
+	for (item_no = 0; item_no < category[cat_no].number; ++item_no)
+	  if (strcmp (name, category[cat_no].item_desc[item_no].name) == 0)
+	    {
+	      if (show_category_name != 0)
+		puts (category[cat_no].name);
+
+	      print_item (&category[cat_no].item_desc[item_no]);
+	      return;
+	    }
+      }
 
   /* The name is not a standard one.
      For testing and perhaps advanced use allow some more symbols.  */