[ic] Uninitialized values in Alias.pm and Encode.pm

Stefan Hornburg racke at linuxia.de
Fri Sep 26 15:11:29 UTC 2008


IC wrote:
> Hi folks,
> 
> I am not sure if this is related to CharSet.pm but it seems highly likely, I
> get the following errors when running in debug mode:-
> 
> Use of uninitialized value in exists at
> /usr/lib/perl5/5.8.8/i686-linux/Encode/Alias.pm line 25.
> Use of uninitialized value in hash element at
> /usr/lib/perl5/5.8.8/i686-linux/Encode/Alias.pm line 77.
> Use of uninitialized value in string ne at
> /usr/lib/perl5/5.8.8/i686-linux/Encode.pm line 111.
> Use of uninitialized value in hash element at
> /usr/lib/perl5/5.8.8/i686-linux/Encode.pm line 115.
> Use of uninitialized value in exists at
> /usr/lib/perl5/5.8.8/i686-linux/Encode.pm line 105.
> 
> I only see this in the newer versions of IC, I see it in 5.5.2, 5.6.0 and
> CVS 5.7.0, in 5.2.0 there are no errors.
> 
> In CharSet.pm it appears sub decode_urlencode is expecting 3 values but only
> gets 2, if I uncomment the logDebug statements then I see CharSet.PM does
> not get a value for $encoding, anyone know why?

Aha, by default the code in CharSet.pm isn't used.

	unless ($encoding || $class->validate_encoding($encoding)) {
		return $octets;
	}
	
This should be && instead of || then.

Regards
	Racke


-- 
LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team




More information about the interchange-users mailing list