diff options
author | Carlos O'Donell <carlos@redhat.com> | 2013-10-18 23:41:30 -0400 |
---|---|---|
committer | Carlos O'Donell <carlos@redhat.com> | 2013-10-18 23:44:35 -0400 |
commit | 484c12fb1e3664fb434291234ea5787c5e3df4f5 (patch) | |
tree | 10c8b18434c01645f5e04d4adab2b61d43376302 /locale/programs/localedef.c | |
parent | de5d4f4c8a426564690197469b0beacfc31a5e35 (diff) | |
download | glibc-484c12fb1e3664fb434291234ea5787c5e3df4f5.tar.gz glibc-484c12fb1e3664fb434291234ea5787c5e3df4f5.tar.xz glibc-484c12fb1e3664fb434291234ea5787c5e3df4f5.zip |
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/localedef.c')
-rw-r--r-- | locale/programs/localedef.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/locale/programs/localedef.c b/locale/programs/localedef.c index 8b9866ab29..d664232473 100644 --- a/locale/programs/localedef.c +++ b/locale/programs/localedef.c @@ -209,7 +209,7 @@ main (int argc, char *argv[]) /* Handle a few special cases. */ if (list_archive) - show_archive_content (verbose); + show_archive_content (remaining > 1 ? argv[remaining] : NULL, verbose); if (add_to_archive) return add_locales_to_archive (argc - remaining, &argv[remaining], replace_archive); |