bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#20751: wc -m doesn't count UTF-8 characters properly


From: Valdis Vītoliņš
Subject: bug#20751: wc -m doesn't count UTF-8 characters properly
Date: Sun, 07 Jun 2015 23:50:27 +0300

Thanks for clarification!

I tested it with Bash script:
chars=$(wc -m mylog|cut -d ' ' -f1)
lines=$(wc -l mylog|cut -d ' ' -f1)
let chars="$chars - $lines"
echo $chars

and got the same number as given by vim
:%s/.//gn

(Which was place from what I got confused.)

Hopefully this bug description will help to others.

> 
> I think it's working correctly.
> I.E. the \n is included in the count.
> 
> thanks,
> Pádraig.
> 







reply via email to

[Prev in Thread] Current Thread [Next in Thread]