aboutsummaryrefslogtreecommitdiff
path: root/locale/programs/locfile.c
diff options
context:
space:
mode:
authorCarlos O'Donell <carlos@redhat.com>2013-10-18 23:41:30 -0400
committerCarlos O'Donell <carlos@redhat.com>2013-10-18 23:44:35 -0400
commit484c12fb1e3664fb434291234ea5787c5e3df4f5 (patch)
tree10c8b18434c01645f5e04d4adab2b61d43376302 /locale/programs/locfile.c
parentde5d4f4c8a426564690197469b0beacfc31a5e35 (diff)
downloadglibc-484c12fb1e3664fb434291234ea5787c5e3df4f5.zip
glibc-484c12fb1e3664fb434291234ea5787c5e3df4f5.tar.gz
glibc-484c12fb1e3664fb434291234ea5787c5e3df4f5.tar.bz2
Enhance localedef --list-archive option.
The localedef --list-archive option claims that it can accept a [file] argument and list the contents of that archive. The support was never implemented. This patch adds that support and allows --list-archive to work as expected. You can now use localedef to list the contents of arbitrary locale archives by using: ./localedef --list-archive file
Diffstat (limited to 'locale/programs/locfile.c')
-rw-r--r--locale/programs/locfile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/locale/programs/locfile.c b/locale/programs/locfile.c
index 3e76ec9..ef7adbf 100644
--- a/locale/programs/locfile.c
+++ b/locale/programs/locfile.c
@@ -343,6 +343,7 @@ write_all_categories (struct localedef_t *definitions,
/* Open the archive. This call never returns if we cannot
successfully open the archive. */
+ ah.fname = NULL;
open_archive (&ah, false);
if (add_locale_to_archive (&ah, locname, to_archive, true) != 0)