Wide character in subroutine entry at /usr/share/perl5/vendor_perl/Cache/FileBackend.pm line 201

Recently when trying to edit some queues configuration in rt 4.0.4 and I got:

Wide character in subroutine entry at
/usr/share/perl5/vendor_perl/Cache/FileBackend.pm line 201.

where that’s subroutine _Build_Unique_Key and the line is return sha1_hex(
$p_key );

The workarounds I came up was doing:

use Encode qw(encode_utf8);
return sha1_hex( encode_utf8($p_key) );

or simply disabling GPG.

What’s correct fix for that?
Arkadiusz Miśkiewicz PLD/Linux Team
arekm / maven.pl http://ftp.pld-linux.org/

Hi,

It would be helpful to get stack trace for this error.2011/11/28 Arkadiusz Miśkiewicz arekm@maven.pl:

Recently when trying to edit some queues configuration in rt 4.0.4 and I got:

Wide character in subroutine entry at
/usr/share/perl5/vendor_perl/Cache/FileBackend.pm line 201.

where that’s subroutine _Build_Unique_Key and the line is return sha1_hex(
$p_key );

The workarounds I came up was doing:

use Encode qw(encode_utf8);
return sha1_hex( encode_utf8($p_key) );

or simply disabling GPG.

What’s correct fix for that?

Arkadiusz Miśkiewicz PLD/Linux Team
arekm / maven.pl http://ftp.pld-linux.org/

RT Training Sessions (http://bestpractical.com/services/training.html)

  • Barcelona, Spain November 28 & 29, 2011

Best regards, Ruslan.