[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1026920: New upstream version of file/libmagic breaks autopkgtest



Control: tags 1026920 patch

Christoph Biedl wrote...

> It took a few hours to realize locale setting ruin your day. I could
> reproduce that only with LC_ALL=C, and then bisecting led to:
> 
>     commit f448f3e5c37de8c285ac14b032b2bdcea82fc08b
>     Author: Christos Zoulas <christos@zoulas.com>
>     Date:   Sat May 28 01:04:57 2022 +0000
> 
>         PR/351: CathyKMeow: octalify unprintable characters in filenames unless raw.

... and there is a command-line option to bypass this.

So this should do the trick, worked for me:

--- a/lib/Lintian/Index/FileTypes.pm
+++ b/lib/Lintian/Index/FileTypes.pm
@@ -72,7 +72,7 @@ sub add_file_types {
     my @files = grep { $_->is_file } @{$self->sorted_list};
     my @names = map { $_->name } @files;
 
-    my @command = qw(file --no-pad --print0 --print0 --);
+    my @command = qw(file --raw --no-pad --print0 --print0 --);
 
     my %file_types;
 

Cheers,

    Christoph

Attachment: signature.asc
Description: PGP signature


Reply to: