GNOME Bugzilla – Bug 570785
Suggested trivial enhancement to the gsf tool
Last modified: 2018-05-22 12:54:27 UTC
As the binary MS Office formats contain substreams with nonprintable characters in their names it would be nice to be able to pass such names to gsf dump or gsf cat as backslash-escaped octal instead of having to remember how to quote binary chars in the shell... Also improved the usage message a bit. Trivial patch below, ok to commit? Index: tools/gsf.c =================================================================== --- tools/gsf.c (revision 1041) +++ tools/gsf.c (working copy) @@ -74,6 +74,7 @@ static GsfInput * find_member (GsfInfile *arch, char const *name) { + name = g_strcompress (name); char const *slash = strchr (name, '/'); if (slash) { @@ -382,6 +383,7 @@ if (argc <= 1) { g_printerr (_("Usage: %s %s\n"), me, usage); + g_printerr (_("Run: %s help for a list of subcommands\n"), me); return 1; }
> ok to commit? It leaks, but once you fix that I am ok with it.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/libgsf/issues/4.