Bug 834867

Summary: [PATCH] "defined(%hash) is deprecated" warning in Unicode::CharName
Product: [Fedora] Fedora Reporter: Paul Howarth <paul>
Component: perl-Unicode-StringAssignee: Emmanuel Seyman <emmanuel>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: emmanuel, perl-devel
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-24 15:37:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Debian patch fixing the warning none

Description Paul Howarth 2012-06-24 12:29:14 UTC
Created attachment 593995 [details]
Debian patch fixing the warning

On newer perls (all current Fedora releases including 15 are affected), use of this module results in a deprecation warning. It's visible in the test suite:

$ make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/byteswap.t ... ok
defined(%hash) is deprecated at /builddir/build/BUILD/Unicode-String-2.09/blib/lib/Unicode/CharName.pm line 80.
        (Maybe you should just omit the defined()?)
t/charname.t ... ok
t/encoding.t ... ok
t/op.t ......... ok
t/ord.t ........ ok
t/stringify.t .. ok
All tests successful.
Files=6, Tests=112,  0 wallclock secs ( 0.03 usr  0.01 sys +  0.10 cusr  0.02 csys =  0.16 CPU)
Result: PASS

Attached patch is from the debian bug for the same issue.

Comment 1 Emmanuel Seyman 2012-06-24 15:00:50 UTC
Note that this has been upstreamed as #74354 on CPAN's RT.

Comment 2 Emmanuel Seyman 2012-06-24 15:37:15 UTC
Fixed. Thanks for reporting the issue, Paul.