Ralph wrote:
Is -width also only interested in counting bytes? I'm UTF-8 here, but
get
$ scan -format '%{subject}' .
=?utf-8?Q?Po=C2=A3nds.?=
$ for w in {0..9}; do
> echo "$w:<`scan -width $w -format '%(decode{subject})' .`>"
> done
0:<Po£nds.>
1:<>
2:<P>
3:<Po>
4:<Po�>
5:<Po£>
6:<Po£n>
7:<Po£nd>
8:<Po£nds>
9:<Po£nds.>
$
$ locale charmap
UTF-8
$ scan -format '%{subject}' .
=?utf-8?Q?Po=C2=A3nds.?=
$ for w in {0..9}; do
echo "$w:<`scan -width $w -format '%(decode{subject})' .`>"
done
0:<Po£nds.>
1:<>
2:<P>
3:<Po>
4:<Po£>
5:<Po£n>
6:<Po£nd>
7:<Po£nds>
8:<Po£nds.>
9:<Po£nds.>
$ scan -version
scan -- nmh-1.6+dev [compiled on atto.localdomain at Sat Jul 26 07:57:00 CDT
2014]
David
_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers