[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nmh-workers] Thoughts: header/address parsing
From: |
David Levine |
Subject: |
Re: [Nmh-workers] Thoughts: header/address parsing |
Date: |
Sun, 10 Aug 2014 18:10:53 -0400 |
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
Re: [Nmh-workers] Thoughts: header/address parsing,
David Levine <=
Re: [Nmh-workers] Thoughts: header/address parsing, David Levine, 2014/08/10
Re: [Nmh-workers] Thoughts: header/address parsing, David Levine, 2014/08/16
Re: [Nmh-workers] Thoughts: header/address parsing, David Levine, 2014/08/24