Package: libunicode-string-perl Version: 2.09-4+b2 Severity: minor Tags: patch
This module emits an error if you so much as look at it: $ perl -e 'use Unicode::CharName;' defined(%hash) is deprecated at /usr/lib/perl5/Unicode/CharName.pm line 80. (Maybe you should just omit the defined()?) Personally I'd prefer to follow the advice of the package description and just use Perl 5.14's integrated Unicode support; but this module's a dependency of wdg-html-validator and debian-edu-config, among other things, and it's practically handing me the patch, so here it is. -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (990, 'testing'), (50, 'unstable') Architecture: i386 (i686) Kernel: Linux 3.2.0-1-686-pae (SMP w/1 CPU core) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages libunicode-string-perl depends on: ii libc6 2.13-24 ii perl [libmime-base64-perl] 5.14.2-6 ii perl-base [perlapi-5.14.2] 5.14.2-6 libunicode-string-perl recommends no packages. libunicode-string-perl suggests no packages. -- no debconf information -- JBR Ankh kak! (Ancient Egyptian blessing)
diff -ru libunicode-string-perl-2.09.pristine/lib/Unicode/CharName.pm libunicode-string-perl-2.09/lib/Unicode/CharName.pm --- libunicode-string-perl-2.09.pristine/lib/Unicode/CharName.pm 2005-10-25 19:11:00.000000000 +0100 +++ libunicode-string-perl-2.09/lib/Unicode/CharName.pm 2012-01-24 12:56:59.730653088 +0000 @@ -77,7 +77,7 @@ return join("", "HANGUL SYLLABLE ", @s) } } - _init_names() unless defined %NAMES; + _init_names() unless %NAMES; $NAMES{sprintf("%04X",$code)} }