bug#25693: -A and mixed line terminators

2017-02-11 Thread Norbert de Jonge
Hi, I don't know if this is a bug or not, but -A does not seem to properly deal with mixed line terminators. Here's a way to replicate the issue. $ wget http://www.popot.org/popuw_forum_archive/4a.html $ file 4a.html $ wc -l 4a.html $ grep -A 1 tul 4a.html $ tail 4a.html I'm requesting 1000

bug#25693: -A and mixed line terminators

2017-02-11 Thread Paul Eggert
Norbert de Jonge wrote: I'm requesting 1 lines of trailing context, which is more lines than the entire file, but output is prematurely cut off. The last line of output is "Binary file 4a.html matches", which indicates that the output would otherwise have data that is improperly encoded fo