GNU bug report logs - #19969
problem: wc -c doesn't read actual # of bytes in file

Previous Next

Package: coreutils;

Reported by: Linda Walsh <coreutils <at> tlinx.org>

Date: Sat, 28 Feb 2015 09:00:03 UTC

Severity: normal

Tags: fixed

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Pádraig Brady <P <at> draigBrady.com>
To: Linda Walsh <coreutils <at> tlinx.org>, Jim Meyering <jim <at> meyering.net>,  19969 <at> debbugs.gnu.org
Subject: bug#19969: problem: wc -c doesn't read actual # of bytes in file
Date: Mon, 02 Mar 2015 21:44:39 +0000
On 02/03/15 21:29, Linda Walsh wrote:
> 
> 
> Jim Meyering wrote:
>>> As root:
>>> # cd /proc
>>> # find -H [^0-9]* -name self -prune -o -name thread-self -prune -o -type f !
>>> -name kmsg ! -name kcore ! -name kpagecount ! -name kpageflags -print0|wc -c
>>> --files0-from=- |sort -n
>>
>> Thanks for the report.
>> However, with wc from coreutils-8.23 and a 3.10 kernel, this is no
>> longer an issue.
> ---
> 
> with coreutils 8.23 from suse 13.2 and uname:
> 
> Linux Ishtar 3.18.5-Isht-Van #1 SMP PREEMPT Wed Feb 4 14:50:44 PST 2015 x86_64 x86_64 x86_64 GNU/Linux
> 
> it is an issue.  All the "/proc/sys" entries are still 0.

The issue will be addressed in 8.24:
http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=v8.23-47-g2662702

You can build this locally and test just with the src/wc binary
without worrying about overwriting any packaged binaries.

Pádraig.





This bug report was last modified 6 years and 215 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.