Hi Vitaliy,
On 2024-03-22 07:04:30, you wrote to me:
WvV>> Btw: My terminal seems fine with displaying the CP850 high ascii
WvV>> 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 en_US.CP850.
VA> There are some encodings which luit list, but doesn't support actually. For
VA> example, mine lists CP866, but doesn't work with it.
VA> Does it present in `locale -a` output?
I don't know if that says much, because mostly there are just the xx_XX and
xx_XX.utf8 versions of the encodings. To give you a sample:
# locale -a | grep en_
en_AG
en_AU
en_AU.utf8
en_BE
en_BE.utf8
en_BE@euro
en_BW
en_BW.utf8
en_CA
en_CA.utf8
en_DK
en_DK.utf8
en_GB
en_GB.iso885915
en_GB.utf8
en_HK
en_HK.utf8
en_IE
en_IE.utf8
en_IE@euro
en_IN
en_NG
en_NZ
en_NZ.utf8
en_PH
en_PH.utf8
en_SG
en_SG.utf8
en_US
en_US.iso885915
en_US.utf8
en_ZA
en_ZA.utf8
en_ZM
en_ZW
en_ZW.utf8
Does this mean there is just an utf8 charset and an unspecified one for almost
every language-country? That doesn't seem logical!
Doesn't this show you what encodings luit supports:
# luit -list
Known locale encodings:
C: GL -> G0, GR -> G2, G0: ASCII, G2: ISO 8859-1
POSIX: GL -> G0, GR -> G2, G0: ASCII, G2: ISO 8859-1
US-ASCII: GL -> G0, GR -> G2, G0: ASCII, G2: ISO 8859-1
...
CP850: GL -> G0, GR -> G2, G0: ASCII, G2: CP 850
...
Known charsets (not all may be available):
ISO 646 (1973) (ISO 2022, 94 codes)
ASCII (ISO 2022, 94 codes)
...
CP 437 (128 codes)
CP 850 (128 codes)
CP 852 (128 codes)
...
So luit seems to know about CP850...
VA> Have you tried to run that script without luit? You don't even need to
VA> change locale for it - just encoding in terminal.
https://paste.opensuse.org/pastes/574e349fadaf
So without luit it doesn't display anything useful. With luit, although you get
the warning, it does display the right characters for CP850 !?
Bye, Wilfred.
--- FMail-lnx64 2.3.0.1-B20240319
* Origin: FMail development HQ (2:280/464)
|