Subj : Need volonteers to test another patch
To   : Vitaliy Aksyonov
From : Nicholas Boel
Date : Sat Mar 02 2024 02:44 pm

Hello Vitaliy,

On Saturday March 02 2024 09:13, you wrote to me:

VA> Most probably it was some combination which made it looking almost
VA> correct. I think that screen may be the reason you saw pseudo-graphics

I'm no longer using screen or tmux, and this version (along with all previous versions since you made the ncurses change) work the same and show UTF-8 properly, except for what you describe below:

VA> more or less correctly. Remember those line wraps? That happens
VA> because GoldEd converts those symbols to UTF-8 first. All
VA> pseudo-graphics symbols represented as 3 bytes. So that line become 3
VA> times longer in bytes. Then GoldEd tries to split message to lines and
VA> it uses bytes! not symbols. That's why it splits the line in the
VA> middle of those pseudo-graphics. Even worse, it may tear apart one
VA> UTF-8 symbol to two lines and it will be displayed incorrectly.

Yeah, I've noticed most of this.. and thank you for your explanation. At least now I know why it is happening.

VA> GoldEd cannot work correctly with multibyte sequences. And even if it
VA> looks "correct", it's just because most English letters has same codes
VA> in cp437 and UTF-8.

Maybe simple ones, like german umlauts and whatnot. But cp437 doesn't have any Cyrillic, Greek, Japanese, Chinese, etc.

VA> If you want to keep using UTF-8, I may only suggest to find version,
VA> which "works" for you and stick to it.

I already have!

VA> Until full UTF-8 support implemented in GoldEd (if that ever happen),
VA> don't expect it to work correctly, sorry.

That's ok. I had it somewhat working for awhile, the latest reverts have changed that. I don't have an issue going back to a "lucky" version. ;)

VA> It's your choice. Just be aware, that if it works - it's just pure
VA> luck and don't expect it to last. Until we implement UTF-8 support. It
VA> may take years. Or never happen. It's not so easy to do it with
VA> backward compatibility wih all older systems like DOS or OS/2.

I don't mind being lucky sometimes.

Regards,
Nick

... "Take my advice, I don't use it anyway."
--- GoldED+/LNX 1.1.5-b20231112
* Origin: _thePharcyde distribution system (Wisconsin) (1:154/10)