GNU bug report logs - #7915
Possible off-by-1 in wc

Previous Next

Package: coreutils;

Reported by: Sune Mølgaard <sune <at> molgaard.org>

Date: Wed, 26 Jan 2011 01:20:02 UTC

Severity: normal

Tags: notabug

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Sune Mølgaard <sune <at> molgaard.org>
To: 7915 <at> debbugs.gnu.org
Subject: bug#7915: Possible off-by-1 in wc
Date: Wed, 26 Jan 2011 02:18:19 +0100
sune <at> jekaterina:~$ echo Å|wc -m
2
sune <at> jekaterina:~$ echo Å|wc -c
3
sune <at> jekaterina:~$

Expected: 1 and 2 respectively.

wc is the one in Ubuntu Linux 10.10

Best regards,

Sune Mølgaard

-- 
It is wonderful how much time good people spend fighting the devil. If 
they would only expend the same amount of energy loving their fellow 
men, the devil would die in his own tracks of ennui.
- Helen Keller




This bug report was last modified 13 years and 292 days ago.

Previous Next


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