From 53ce39ec9c67bc99054a0728146d667dfedc9fa4 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Mon, 2 Aug 2010 16:36:51 -0600 Subject: [PATCH] charnames.t: Guard agains empty lines in __DATA__ Somehow an empty line got inserted at the end of the file, and got interpreted as 0's which caused the test for NULL to fail. This guards against that. I removed the empty line, but I'm not sure git has picked that up. --- lib/charnames.t | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/charnames.t b/lib/charnames.t index a77fec2..f41d5a3 100644 --- a/lib/charnames.t +++ b/lib/charnames.t @@ -850,6 +850,7 @@ is("\N{U+1D0C5}", "\N{BYZANTINE MUSICAL SYMBOL FTHORA SKLIRON CHROMA VASIS}"); # from the web. while () { chomp; + next unless $_; # Guard against empty lines getting inserted. my ($code, $name) = split ";"; my $decimal = hex $code; $names[$decimal] = $name; -- 1.8.3.1