On Mon, 14 Dec 2020, Riccardo (Jack) Lucchetti wrote:
Dear all,
I just pushed a one-liner to git to fix an alignment problem with the "freq"
command in case there are UTF-8 characters in a stringified series. For
example, the script
<hansl>
nulldata 20
set seed 555
series y = ceil(uniform(0,4))
l = defarray("ca", "cà", "üß", "mò")
stringify(y, l)
freq y
</hansl>
now gives correct alignment.
Ah, nice.
We have a similar problem with xtab, but I believe that in order to
fix that
I'd have to intervene on gretl_utf8_truncate() (from strutils.c) and the
implications are not very clear to me, so I'd rather wait for instructions
from Allin.
That one was a little trickier, but gretl_utf8_truncate() didn't
need revision. Fixed in git.
Allin.