Subj : Re: Need volonteers to test another patch
To   : Vitaliy Aksyonov
From : Wilfred van Velzen
Date : Sat Mar 09 2024 04:57 pm

Hi Vitaliy,

On 2024-03-08 09:02:51, I wrote to you:

VA>> OK. Your terminal works in IBM850, but you run golded may try to run
VA>> in UTF-8. That won't work and it worked before just because golded
VA>> was not initializing correctly!

WvV> Ok, so how do I fix it? ;)

Yesterday I did some experimenting with the latest golded (commit: "call setlocale() before initscr() (#86)"), trying different ways to start golded and different golded xlat configurations. I found 2 setups that work for me, so the messages with pseudo graphics in the STATS area look ok:

My golded.cfg for both:

include charsets.cfg

XLATIMPORT CP437
XLATLOCALSET CP850
XLATEXPORT CP850


And starting golded in a local Konsole terminal "TERM=xterm" with the default charset set to utf-8:

# sudo -u fido LANG=en_EN.CP850 luit -encoding 'CP850' /usr/local/bin/golded -f


And in the same kind of terminal but with the default charset set to cp850, this one works:

# sudo -u fido LANG=en_US.CP850 /usr/local/bin/golded -f


I will still have to test these in a putty terminal later during the coming week.

And messages which have utf-8 characters, like the ones from Michiel in the UTF area, don't display properly (of course).
I did try adding:

XLATCHARSET UTF-8 CP850 utf8_850.chs

But that didn't help. Of course only a small subset of utf-8 characters can be displayed with cp850...


Bye, Wilfred.

--- FMail-lnx64 2.2.1.1
* Origin: FMail development HQ (2:280/464)