File: fix-defined-hash-deprecation-warning.patch

package info (click to toggle)
libunicode-string-perl 2.09-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 1,224 kB
  • ctags: 35
  • sloc: perl: 17,186; makefile: 2
file content (20 lines) | stat: -rw-r--r-- 565 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: Fix deprecation warning caused by defined(%hash) use
Origin: vendor
Bug: http://rt.cpan.org/Public/Bug/Display.html?id=74354
Bug-Debian: http://bugs.debian.org/657144
Forwarded: yes
Author: Justin B Rye <jbr@edlug.org.uk>
Reviewed-by: Salvatore Bonaccorso <carnil@debian.org>
Last-Update: 2012-01-29

--- a/lib/Unicode/CharName.pm
+++ b/lib/Unicode/CharName.pm
@@ -77,7 +77,7 @@
 	    return join("", "HANGUL SYLLABLE ", @s)
 	}
     }
-    _init_names() unless defined %NAMES;
+    _init_names() unless %NAMES;
     $NAMES{sprintf("%04X",$code)}
 }