Bug 177245

Summary: wc doesn't count characters properly
Product: [Fedora] Fedora Reporter: JW <ohtmvyyn>
Component: coreutilsAssignee: Tim Waugh <twaugh>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-01-08 09:12:45 EST Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description JW 2006-01-08 01:40:09 EST
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):

How reproducible:

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

Actual Results:  3 3

Expected Results:  1 3

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