Bug#501229: bins: Perl error "can't use string as hash ref"

2008-10-13 Thread Hans-Joachim Baader
Hi,

checked the latest version and it works.

I needed a modified BINS because BINS had massive problems in the past.
I didn't track the changes in Debian, so I kept my modified version.
Thank you for your help.

Regards,
hjb
-- 
Pro-Linux - Germany's largest volunteer Linux support site
http://www.pro-linux.de/  Public Key ID 0x3DDBDDEA


signature.asc
Description: Digital signature


Bug#501229: bins: Perl error "can't use string as hash ref"

2008-10-08 Thread Ludovic Rousseau

Hello,

Hans-Joachim Baader a écrit :

while refreshing my photo archive for the first time in months I got the
following error:

Can't use string ("38/64") as a HASH ref while "strict refs" in use at
bins line 3753.

Maybe this error occurs since the upgrade to perl 5.10, but I don't know
for sure.

The affected line is:

if (${%$hashref}{$tagName}) {

The line number may not be exact because I'm using a modified BINS.


This bugs should be corrected since version 1.1.29-11 of bins. It was 
Debian bug #481662.
Your version does not include this patch so please try with the official 
Debian version to check your bug is still present and tell me.


Why do you need a modified BINS?

Bye

--
 Dr. Ludovic Rousseau



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



Bug#501229: bins: Perl error "can't use string as hash ref"

2008-10-05 Thread Hans-Joachim Baader
Package: bins
Version: 1.1.29-12
Severity: normal


Hi,

while refreshing my photo archive for the first time in months I got the
following error:

Can't use string ("38/64") as a HASH ref while "strict refs" in use at
bins line 3753.

Maybe this error occurs since the upgrade to perl 5.10, but I don't know
for sure.

The affected line is:

if (${%$hashref}{$tagName}) {

The line number may not be exact because I'm using a modified BINS.
For me, the fix appears to be the following patch:

--- bins.orig   2008-10-05 20:41:07.450907985 +0200
+++ bins2008-10-05 20:43:52.413391715 +0200
@@ -3750,8 +3750,8 @@

 my @descTable;
 foreach my $tagName (@mainFields) {
-if (${%$hashref}{$tagName}) {
-my $value = ${%$hashref}{$tagName};
+if ($hashref->{$tagName}) {
+my $value = $hashref->{$tagName};
 $value =~ s/'/'/g  ; # in case it's used in javascript code
 push @descTable, {DESC_FIELD_NAME => $fields{$tagName}->{'Name'},
   DESC_FIELD_VALUE => $value,

Regards,
hjb



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

Kernel: Linux 2.6.26.5 (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages bins depends on:
ii  libhtml-clean-perl  0.8-11   Cleans up HTML code for web browse
ii  libhtml-parser-perl 3.56-1+b1A collection of modules that parse
ii  libhtml-template-pe 2.9-1HTML::Template : A module for usin
ii  libimage-info-perl  1.28-1   allows extraction of meta informat
ii  libimage-size-perl  3.1.1-2  determine the size of images in se
ii  libio-string-perl   1.08-2   Emulate IO::File interface for in-
ii  libjpeg-progs   6b-14Programs for manipulating JPEG fil
ii  liblocale-gettext-p 1.05-4   Using libc functions for internati
ii  libtext-iconv-perl  1.7-1+b1 converts between character sets in
ii  libtext-unaccent-pe 1.08-1+b1provides functions to remove accen
ii  libtimedate-perl1.1600-9 Time and date functions for Perl
ii  liburi-perl 1.35.dfsg.1-1Manipulates and accesses URI strin
ii  libxml-grove-perl   0.46alpha-11 Perl module for accessing parsed *
ii  libxml-handler-yawr 0.23-5   Perl module for writing XML docume
ii  libxml-perl 0.08-1   Perl modules for working with XML
ii  libxml-writer-perl  0.604-1  Perl module for writing XML docume
ii  libxml-xql-perl 0.68-4   Perl module for querying XML tree 
ii  perlmagick  7:6.3.7.9.dfsg1-2+b2 Perl interface to the libMagick gr

bins recommends no packages.

bins suggests no packages.

-- no debconf information



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