nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] scan - Funky output with utf-8

2017-03-21 07:03:07
Hi Valdis,

%body in a scan format goes pear-shaped if -width splits a UTF character.

May we please have the output of

    scan -version
    locale

(Attaching a .png, cut-n-paste didn't quite get things right)

A simple test here doesn't show the fault.

    $ scan -version
    scan -- nmh-1.6 [compiled on orac at 2016-11-15 11:46:57 +0000 Tue]
    $
    $ for w in 7 8 9; do
    >     printf '%s\n' '' Beau£iful. |
    >     scan -forma '<<%{body}>>' -file /dev/stdin -width $w
    > done
    <<Beau
    <<Beau£
    <<Beau£i
    $

It would be handy to have just the start of the undecoded body so we can
reproduce the same UTF-8 runes, e.g. the quoted-printable or base64 of
867285's body.

-- 
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

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