nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] I like neither green eggs and ham nor MIME

2014-07-18 11:58:08
norm@dad.org writes:

I am not at all secure about how the standard GNU utilities will handle
non-ascii characters. For example, 'wc -c', just counts bytes. True, the man
page talks about bytes, not characters, but I am still left uncomfortable.

GNU wc(1) has -m for that:

% echo $LANG
en_US.UTF-8
% echo 'äöü' | wc -c
7
% echo 'äöü' | wc -m
4

-- 
Christian Neukirchen  <chneukirchen@gmail.com>  http://chneukirchen.org


_______________________________________________
Nmh-workers mailing list
Nmh-workers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>