Control: tags -1 upstream fixed-upstream
On 2024-02-09 13:51:20 +0100, Vincent Lefevre wrote:
> Debian's file utility does not recognize unified diff file with
> binary data. To reproduce, create 2 files a and b with
>
> { seq 1 9 && printf "\001"; } > a
> { seq 2 9 && printf "\002"; } > b
>
> Then
>
> $ diff -u a b | /usr/bin/file -
> /dev/stdin: data
>
> There is no such issue with "file" from https://github.com/file/file
> for which I get
>
> $ diff -u a b | file -
> /dev/stdin: unified diff output text
>
> as expected.
After testing, I could see that this is the following upstream commit
https://github.com/file/file/commit/ed96f0ee95090c799b9215cc81f1a6095d81e5c8
that fixes the issue.
--
Vincent Lefèvre <[email protected]> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)