Suggested trivial enhancement to the gsf tool
Submitted by Tor Lillqvist
Link to original bug (#570785)
Description
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; }