Package: xpdf
Version: 3.03-2
Severity: normal
Tags: patch

With the -m option, the first file is discarded because the last line
of $many doesn't end with a \n. It seems that my patch

  
http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=5;filename=xpdf.diff;att=1;bug=636403

was not correctly applied. A solution is to replace

  printf "%s" "$many"

by

  printf "%s\n" "$many"

I've attached a new patch.

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages xpdf depends on:
ii  lesstif2      1:0.95.2-1
ii  libc6         2.13-18   
ii  libgcc1       1:4.6.1-9 
ii  libpoppler13  0.16.7-2  
ii  libstdc++6    4.6.1-9   
ii  libx11-6      2:1.4.4-1 
ii  libxt6        1:1.1.1-2 

Versions of packages xpdf recommends:
ii  gsfonts-x11    0.22    
ii  poppler-data   0.4.5-1 
ii  poppler-utils  0.16.7-2

xpdf suggests no packages.

-- no debconf information
--- /usr/bin/xpdf       2011-08-29 01:12:29.000000000 +0200
+++ xpdf        2011-09-08 12:36:06.000000000 +0200
@@ -50,7 +50,7 @@
 test "$title" != "" || title="Xpdf: $file"
 if [ "$many" != "" ]; then
     cmd=$(echo "$cmd" | sed s/xpdf\.real/xpdf/g)
-    printf "%s" "$many" | while read -r file; do
+    printf "%s\n" "$many" | while read -r file; do
         test ! -f "$file" || $cmd "$file" &
     done
 elif [ "$file" = "" ]; then

Reply via email to