Bug 177245 - wc doesn't count characters properly
Summary: wc doesn't count characters properly
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: coreutils
Version: 4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-01-08 06:40 UTC by JW
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2006-01-08 14:12:45 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description JW 2006-01-08 06:40:09 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (compatible; MSIE 6.0; Windows; U; AIIEEEE!; Win98; Windows 98; en-US; Gecko masquerading as IE; should it matter?; rv:1.8b) Gecko/20050217

Description of problem:
wc counts bytes and not characters, but documentation seems to indicate that there is a distinction.


Version-Release number of selected component (if applicable):
coreutils-5.2.1-48.1

How reproducible:
Always

Steps to Reproduce:
1.LANG=en_US.UTF-8 echo -ne "\xe2\x80\xbe" | /usr/bin/wc -m -c
2.
3.
  

Actual Results:  3 3


Expected Results:  1 3


Additional info:

Comment 1 JW 2006-01-08 14:12:45 UTC
Perhaps you should have tried: "echo -ne "\xe2\x80\xbe" | LANG=en_US.UTF-8
/usr/bin/wc -m -c".







Note You need to log in before you can comment on or make changes to this bug.