nmh-workers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Ralph Corderoy
Subject: Re: [Nmh-workers] scan - Funky output with utf-8
Date: Tue, 21 Mar 2017 12:02:51 +0000

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]