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

From: Valdis Vītoliņš <[email-masked]>
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.
>