Package: copyright-update Version: 2013.0602-1 Severity: normal Dear Maintainer,
The copyright sign should be encoded according to the file's encoding to make the regexp match. Enclosed I send you a dirty hack which fixed the error for me; a proper fix should try to guess the file's encoding. Kind regards, Philipp -- System Information: Debian Release: 8.0 Architecture: i386 (i686) Kernel: Linux 3.16.0-4-686-pae (SMP w/2 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages copyright-update depends on: ii perl 5.20.1-4 copyright-update recommends no packages. copyright-update suggests no packages. -- no debconf information
--- /usr/bin/copyright-update 2013-06-03 03:04:14.000000000 +0200 +++ scripts/copyright-update 2016-02-14 22:50:29.188090341 +0100 @@ -42,6 +42,9 @@ use File::Find; use charnames q(:full); +use Encode; +use Encode::Guess; + IMPORT: # This is just a syntactic sugar: actually no-op { # Import following environment variables @@ -779,7 +782,7 @@ # Perl Unicode also would accpt x{a9}/, but \N{} is more readable # http://en.wikipedia.org/wiki/Copyright_symbol - my $ch = "\N{COPYRIGHT SIGN}"; + my $ch = encode("UTF-8", "\N{COPYRIGHT SIGN}"); my $sign = '(?:' . $ch . '|\([Cc]\))'; my $yyyy = '\d{4}'; my $copy = '(?:(?i)Copyright):?[ \t]+' . $sign . '[ \t]+' . $yyyy;