Package: cbrpager
Version: 0.9.14-3
Tags: patch
cbrpager is unable to display images inside ZIP-format archives that
contain the '[' character in their filenames. This is due to a quirk in
/usr/bin/unzip, which uses strange semantics for wildcards. From the
unzip manpage:
To specify a verbatim left bracket, the three-character sequence
‘‘[[]’’ has to be used.
Fortunately, only '[' needs to be escaped like this -- ']' is not
affected. The following patch is a simple workaround.
--- cbrpager-0.9.14/src/global.c 2005-09-05 11:24:46.000000000 -0700
+++ cbrpager-0.9.14-patch/src/global.c 2007-04-11 14:11:02.000000000 -0700
@@ -146,7 +146,7 @@
switch (pref.booktype = file_type_of(pref.lastbook)) {
case ZIP_FILE:
- bff = g_strdup_printf("unzip -l \"%s\" | grep \"%s\" > %s",
+ bff = g_strdup_printf("unzip -l \"%s\" | grep \"%s\" | sed -e
's/\\[/[[]/g' > %s",
pref.lastbook, all_extensions, tmpf);
if (debug) printf("ZIP command: %s\n", bff);
break;
--
Nicholas Breen
[EMAIL PROTECTED]