aboutsummaryrefslogtreecommitdiff
path: root/locale/programs/localedef.c
diff options
context:
space:
mode:
Diffstat (limited to 'locale/programs/localedef.c')
-rw-r--r--locale/programs/localedef.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/locale/programs/localedef.c b/locale/programs/localedef.c
index 34c7394d3d..206246944f 100644
--- a/locale/programs/localedef.c
+++ b/locale/programs/localedef.c
@@ -234,8 +234,11 @@ main (int argc, char *argv[])
{
avail = act_add_locdef->locale->categories[cat].generic != NULL;
if (avail)
- localedef->categories[cat].generic
- = act_add_locdef->locale->categories[cat].generic;
+ {
+ localedef->categories[cat].generic
+ = act_add_locdef->locale->categories[cat].generic;
+ localedef->avail |= 1 << cat;
+ }
}
if (! avail)