Control: tag -1 patch
On Sun, Apr 20, 2025 at 06:55:38AM +0200, Salvatore Bonaccorso wrote:
Running grep-excuses for instance right now against the linux package
gives:
linux (6.12.21-1 to 6.12.22-1)
Maintainer: Debian Kernel Team
Depends: linux linux-signed-amd64
Depends: linux linux-signed-arm64
Migration status for linux (6.12.21-1 to 6.12.22-1): Waiting for test
results or another package, or too young (no action required now - check later)
Issues preventing migration:
Wide character in print at /usr/bin/grep-excuses line 364.
This patch fixes it for me, but my Perl is quite rusty. (Ideally it
might use the locale encoding instead of hardcoding UTF-8; but it
wouldn't be the first script in devscripts to take the latter approach,
and the smarter approach used in who-permits-upload would cause
grep-excuses to gain an additional dependency on libencode-locale-perl.)
diff --git a/scripts/grep-excuses.pl b/scripts/grep-excuses.pl
index 5f4faeb3..99903e39 100755
--- a/scripts/grep-excuses.pl
+++ b/scripts/grep-excuses.pl
@@ -22,6 +22,7 @@
use 5.006;
use strict;
use warnings;
+use open ':std', OUT => ':encoding(UTF-8)';
use Data::Dumper;
use Dpkg::Path qw(find_command);
use File::Basename;
Thanks,
--
Colin Watson (he/him) [cjwat...@debian.org]