Subj : Re: Need volonteers to test another patch To : Wilfred van Velzen From : Vitaliy Aksyonov Date : Sat Mar 09 2024 12:49 pm Hello Wilfred. 09 Mar 24 16:57, you wrote to me: VA>>> OK. Your terminal works in IBM850, but you run golded may try to VA>>> run in UTF-8. That won't work and it worked before just because VA>>> golded was not initializing correctly! WvV>> Ok, so how do I fix it? ;) WvV> Yesterday I did some experimenting with the latest golded (commit: WvV> "call setlocale() before initscr() (#86)"), trying different ways to WvV> start golded and different golded xlat configurations. I found 2 WvV> setups that work for me, so the messages with pseudo graphics in the WvV> STATS area look ok: WvV> My golded.cfg for both: WvV> include charsets.cfg WvV> XLATIMPORT CP437 WvV> XLATLOCALSET CP850 WvV> XLATEXPORT CP850 Do not use xlatexport cp850. This parameter is used to select charset which will be used when you write messages to message base. Unless you really want cp850. I assume you want to have cp437 there. XlatImport on other side will use cp437 if message has no CHRS kludge. WvV> And starting golded in a local Konsole terminal "TERM=xterm" with the WvV> default charset set to utf-8: WvV> # sudo -u fido LANG=en_EN.CP850 luit -encoding 'CP850' WvV> /usr/local/bin/golded -f If you use luit - than having xterm in UTF-8 is correct. WvV> And in the same kind of terminal but with the default charset set to WvV> cp850, this one works: WvV> # sudo -u fido LANG=en_US.CP850 /usr/local/bin/golded -f This is correct commandline to if you have your terminal in cp850. Just choose what works better for you. Probably luit and terminal in UTF-8 is most convenient. WvV> I will still have to test these in a putty terminal later during the WvV> coming week. Putty will work fine. Only I suggest you to change terminal type in putty from xterm (they use if by default) to putty or putty-256color. It's in Connection->Data section. WvV> And messages which have utf-8 characters, like the ones from Michiel WvV> in the UTF area, don't display properly (of course). I did try adding: WvV> XLATCHARSET UTF-8 CP850 utf8_850.chs WvV> But that didn't help. Of course only a small subset of utf-8 WvV> characters can be displayed with cp850... Golded cannot read from UTF-8. There is no Unicode support. You must use another editor or GoldEd with external editor to work with Unicode. It may convert from one-byte charsets to UTF-8, but not vise versa. Vitaliy .... 640K ought to be enough for anybody --- GoldED+/LNX 1.1.5-b20240305-beta * Origin: Aurora, Colorado (1:104/117) .