On 2015-09-18 10:21:16 +0200, Vincent Lefevre wrote:
> Package: file
> Version: 1:5.24-2
> Severity: important
>
> "file" mistakes some text as bitmap:
>
> $ echo P1788 | file -
> /dev/stdin: , bitmap, ASCII text
>
> $ printf "P1788\n82541 2015\n" | file -
> /dev/stdin: Netpbm PPM image data, size = 82541 x 2015, bitmap, ASCII text
>
> Such false positives prevent text files from being viewed by "less"
> when using a filter.

I forgot to say that the breakage with lesspipe is a regression.
In Debian 8, it outputs "Netpbm PBM image text" instead of
"Netpbm PPM image data". The new behavior makes the false positives
more important.

-- 
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)

Reply via email to