Bug#514737: libpdf-reuse-perl: wrong declaration of PDF::Reuse::findFont

2009-02-12 Thread Andreas Faust
On Thursday 12 February 2009 11:53:35 Niko Tyni wrote:

First of all:
it's a bug, it's wrong to perl documentation about prototyping.
It's absolutely right that my perl instane complains about it :)


to be very detailed:
we use a kind of mod_perl - light, which is self-coded and not limited to 
Apache. It's familiar with mod_perl's Apache::Registry, but slightly faster 
and alot slimmer.

During runtime, we get that error. Just to provide You the code that raises 
the error will probably not help You much, because You don't have the same 
environment - and believe me - i wont provide You that :)

so, please just fix it by removing the braces.
i've done that already for us. so i am only upstreaming :)

 severity 514737 normal
 retitle 514737 libpdf-reuse-perl: wrong declaration of
 PDF::Reuse::findFont, breaks with ModPerl? thanks

 On Thu, Feb 12, 2009 at 10:17:59AM +0100, Andreas Faust wrote:
 (Please keep 514...@bugs.debian.org Cc'd)

 The severity is inflated in that case. Downgrading.

 I still have trouble reproducing this. Running this under
 Mod_Perl::Registry works for me:

 #!/usr/bin/perl -w
 use strict;
 use PDF::Reuse;

 our $n++;

 prFile(/tmp/test.pdf);
 prFont(q/Times-Roman/);
 prText(100, 500, qq/Hello World\n/);
 prEnd();

 print Done for the ${n}th time at @{[scalar localtime]}\n;
 __END__

 Please provide more detail.



-- 
dgx new media GmbH
Saalbaustr. 8-10
64283 Darmstadt
Germany

Tel. +49 6151 8508 - 012
Fax +49 6151 8508 - 111
www.dgx.de

Geschäftsführer:
Dipl. Designer Till Middelhauve
Dipl. Informatiker Witold Wegner

Amtsgericht Darmstadt, HRB 7809
Steuernummer 00723113813 


signature.asc
Description: This is a digitally signed message part.


Bug#514737: libpdf-reuse-perl: wrong declaration of PDF::Reuse::findFont

2009-02-10 Thread Andreas Faust
Package: libpdf-reuse-perl
Severity: grave
Justification: renders package unusable

Too many arguments for PDF::Reuse::findFont at /usr/share/perl5/PDF/Reuse.pm 
line 197, near $nyFont)
BEGIN not safe after errors--compilation aborted at 
/usr/share/perl5/PDF/Reuse.pm line 744.
Compilation failed in require at (eval 312) line 36.
BEGIN failed--compilation aborted at (eval 312) line 36.

sub PDF::Reuse::findFont() is wrong, as it implies no arguments

it should be sub PDF::Reuse::findFont   

-- System Information:
Debian Release: 5.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org