Package: swish-e
Version: 2.4.3-3
Severity: normal
Tags: patch

Running swish-e on pdf files containing parentheses in their names with the
_pdf2html.pl filter example fails because the filenames are not quoted
when calling the pdf utilities. This patch fixes the problem:

--- /usr/share/doc/swish-e/examples/filter-bin/_pdf2html.pl
2003-04-14 18:51:06.000000000 +0200
+++ _pdf2html.pl        2006-03-16 11:29:51.049932224 +0100
@@ -41,7 +41,7 @@
 
 my %metadata;
 
-open F, "pdfinfo $file |" || 
+open F, "pdfinfo '$file' |" || 
 die "$0: Failed to open $file $!";
 
 while (<F>) {
@@ -81,7 +81,7 @@
 
 # Might be faster to use sysread and read in larger blocks
 
-open F, "pdftotext $file - |" or die "$0: failed to run pdftotext: $!";
+open F, "pdftotext '$file' - |" or die "$0: failed to run pdftotext:
$!";
 print escapeHTML($_) while ( <F> );
 close F or die "$0: Failed close on pipe to pdftotext for $file: $?";
 

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.8-1-k7
Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=ISO-8859-1) (ignored: LC_ALL set to 
de_DE)

Versions of packages swish-e depends on:
ii  debconf [debconf-2.0]    1.4.71          Debian configuration management sy
ii  libc6                    2.3.6-3         GNU C Library: Shared libraries an
ii  libpcre3                 6.4-1.1         Perl 5 Compatible Regular Expressi
ii  libxml2                  2.6.23.dfsg.2-2 GNOME XML library
ii  zlib1g                   1:1.2.3-11      compression library - runtime

Versions of packages swish-e recommends:
ii  libmime-types-perl            1.16-1     Perl extension for determining MIM
ii  perl                          5.8.8-3    Larry Wall's Practical Extraction 
ii  perl-base [perlapi-5.8.7]     5.8.8-3    The Pathologically Eclectic Rubbis

-- debconf information:
* swish-e/configuration-note:


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to