----------------------------------------------------------------------------------
@MSGID: 1:104/117 66006035
@REPLY: 2:280/464 65fed1b0
@CHRS: KOI8-R 2
@TZUTC: -0600
@TID: hpt/lnx 1.9 2022-07-03
Hello Wilfred.
23 Mar 24 13:57, you wrote to me:
WvV>>> Btw: My terminal seems fine with displaying the CP850 high
WvV>>> ascii characters (despite the warning):
WvV>>>
https://paste.opensuse.org/pastes/8bcb9d2ecfdf
VA>> Looks like your luit doesn`t support CP850 or you don`t have
VA>> en_US.CP850. There are some encodings which luit list, but
VA>> doesn`t support actually. For example, mine lists CP866, but
VA>> doesn`t work with it.
VA>> Does it present in `locale -a` output?
WvV> I don`t know if that says much, because mostly there are just the
WvV> xx_XX and xx_XX.utf8 versions of the encodings. To give you a sample:
WvV> # locale -a | grep en_
[...skipped...]
WvV> Does this mean there is just an utf8 charset and an unspecified one
WvV> for almost every language-country? That doesn`t seem logical!
It just mean that your system doesn`t have necessary locale
installed. And that perfectly explain why luit shows all chars, but GoldEd
doesn`t.
Luit converts them using internal tables to UTF, but GoldEd tries
to use en_EN.CP850, which is missing. That`s why it doesn`t understand
that letters with codes > 127 are letters.
You need to install or generate this locale and GoldEd will show
those letters! What Linux distribution do you use? Do you need help with
locale generation?
WvV> Doesn`t this show you what encodings luit supports:
WvV> # luit -list
WvV> Known locale encodings:
WvV> C: GL -> G0, GR -> G2, G0: ASCII, G2: ISO 8859-1
WvV> POSIX: GL -> G0, GR -> G2, G0: ASCII, G2: ISO 8859-1
WvV> US-ASCII: GL -> G0, GR -> G2, G0: ASCII, G2: ISO 8859-1
WvV> ...
WvV> CP850: GL -> G0, GR -> G2, G0: ASCII, G2: CP 850
WvV> ...
WvV> Known charsets (not all may be available):
WvV> ISO 646 (1973) (ISO 2022, 94 codes)
WvV> ASCII (ISO 2022, 94 codes)
WvV> ...
WvV> CP 437 (128 codes)
WvV> CP 850 (128 codes)
WvV> CP 852 (128 codes)
WvV> ...
WvV> So luit seems to know about CP850...
Yes. And that`s good!
VA>> Have you tried to run that script without luit? You don`t even
VA>> need to change locale for it - just encoding in terminal.
WvV>
https://paste.opensuse.org/pastes/574e349fadaf
WvV> So without luit it doesn`t display anything useful. With luit,
WvV> although you get the warning, it does display the right characters for
WvV> CP850 !?
Yep. I meant to run that script without luit in terminal configured
for CP850. But you don`t need to do that anymore as long as we found
root cause already.
Vitaliy
... 640K ought to be enough for anybody
--- GoldED+/LNX 1.1.5-b20240305-beta
* Origin: Aurora, Colorado (1:104/117)
SEEN-BY: 50/109 104/117 280/5555 301/1 452/166
460/58 463/68 467/888 3634/12
SEEN-BY: 5000/111 5005/49 5015/46 5020/715 736 828
846 848 1042 4441 12000
SEEN-BY: 5025/121 5030/49 1081 5054/8 5060/900
5061/133 5075/128 5083/444
SEEN-BY: 5090/958
@PATH: 104/117 5020/1042 4441