summary refs log tree commit diff
path: root/locale
diff options
context:
space:
mode:
Diffstat (limited to 'locale')
-rw-r--r--locale/programs/ld-collate.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/locale/programs/ld-collate.c b/locale/programs/ld-collate.c
index 205cf966f2..73a186df26 100644
--- a/locale/programs/ld-collate.c
+++ b/locale/programs/ld-collate.c
@@ -2696,14 +2696,17 @@ collate_read (struct linereader *ldfile, struct localedef_t *result,
 	  return;
 	}
 
-      /* Get the locale definition.  */
-      copy_locale = load_locale (LC_COLLATE, now->val.str.startmb,
-				 repertoire_name, charmap, NULL);
-      if ((copy_locale->avail & COLLATE_LOCALE) == 0)
+      if (! ignore_content)
 	{
-	  /* Not yet loaded.  So do it now.  */
-	  if (locfile_read (copy_locale, charmap) != 0)
-	    goto skip_category;
+	  /* Get the locale definition.  */
+	  copy_locale = load_locale (LC_COLLATE, now->val.str.startmb,
+				     repertoire_name, charmap, NULL);
+	  if ((copy_locale->avail & COLLATE_LOCALE) == 0)
+	    {
+	      /* Not yet loaded.  So do it now.  */
+	      if (locfile_read (copy_locale, charmap) != 0)
+		goto skip_category;
+	    }
 	}
 
       lr_ignore_rest (ldfile, 1);