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 /ChangeLog | |
parent | de5d4f4c8a426564690197469b0beacfc31a5e35 (diff) | |
download | glibc-484c12fb1e3664fb434291234ea5787c5e3df4f5.tar glibc-484c12fb1e3664fb434291234ea5787c5e3df4f5.tar.gz glibc-484c12fb1e3664fb434291234ea5787c5e3df4f5.tar.bz2 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 'ChangeLog')
-rw-r--r-- | ChangeLog | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -1,3 +1,19 @@ +2013-10-18 Carlos O'Donell <carlos@redhat.com> + + * locale/locarchive.h (struct locarhandle): Add fname. + * locale/programs/localedef.c (main): Pass ARGV[remaining] + if an optional argument was specified to --list-archive, + otherwise NULL. + * locale/programs/locarchive.c (show_archive_content): Take new + argument fname and pass it via ah.fname to open_archive. + * locale/programs/localedef.h: Update decl. + (open_archive): If AH->fname is non-null, open that file + rather than the default file name, and don't ignore ENOENT. + (create_archive): Set AH.fname to NULL. + (delete_locales_from_archive): Likewise. + (add_locales_to_archive): Likewise. + * locale/programs/locfile.c (write_all_categories): Likewise. + 2013-10-18 Joseph Myers <joseph@codesourcery.com> Aldy Hernandez <aldyh@redhat.com> |