bug#23073: wc reports wrong byte counts when using '--from-files0=-'

2016-03-21 Thread Jim Meyering
On Sun, Mar 20, 2016 at 5:59 PM, William R. Fraser wrote: > When wc gets its list of files by reading from stdin, using the argument > '--from-files0=-', it reuses the same fstatus struct for each file. > > The problem is that the 'wc' function checks the 'failed' member of this > struct and if it

bug#23073: wc reports wrong byte counts when using '--from-files0=-'

2016-03-21 Thread Bernhard Voelker
On 03/21/2016 04:16 PM, Pádraig Brady wrote: On 21/03/16 00:59, William R. Fraser wrote: When wc gets its list of files by reading from stdin, using the argument '--from-files0=-', it reuses the same fstatus struct for each file. The problem is that the 'wc' function checks the 'failed' member

bug#23073: wc reports wrong byte counts when using '--from-files0=-'

2016-03-21 Thread Pádraig Brady
On 21/03/16 00:59, William R. Fraser wrote: When wc gets its list of files by reading from stdin, using the argument '--from-files0=-', it reuses the same fstatus struct for each file. The problem is that the 'wc' function checks the 'failed' member of this struct and if it is <=0, it skips doin