Re: [PATCH] Fix to virtual terminal UTF-8 mode handling

From: Paul LeoNerd Evans
Date: Wed May 18 2005 - 06:14:06 EST


--Signature_Wed__18_May_2005_12_10_13_+0100_Ll.APH6dB29dvIgZ
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

On Tue, 17 May 2005 23:10:30 -0400
Daniel Jacobowitz <dan@xxxxxxxxxx> wrote:

> I'd be inclined to think that this is more of a terminfo issue. If you
> want your terminal to reset into UTF-8, use a terminfo entry with the
> appropriate command string instead of the current one - this would be
> the 'rs1' capability:
>=20
> rs1=3D\Ec\E]R
>=20
> That's reset console to default, reset palette.

Unfortunately, that doesn't work. Doing it that way means that any
program running on a host whose terminfo is so configured, would force
UTF-8 mode on, when it issues a reset to a Linux console, regardless of
which machine that is on (e.g. telnet, ssh,...). Furthermore, it would do
so regardless of whether we want UTF-8 mode, or not. Again with my patch
it is a user configurable matter whether they want UTF-8 or not. This
terminfo entry forces it to happen.

That said, I am planning a whole bunch of other changes to terminfo; my
repeated wrestling with xterm recently on the regard of modified cursor
keys (e.g. Ctrl+left) has lead me to conclude the whole system needs a
bit of an overhaul... But that's somewhat off-topic to the kernel.. :)

--=20
Paul "LeoNerd" Evans

leonerd@xxxxxxxxxxxxxx
ICQ# 4135350 | Registered Linux# 179460
http://www.leonerd.org.uk/

--Signature_Wed__18_May_2005_12_10_13_+0100_Ll.APH6dB29dvIgZ
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFCiyKYvcPg11V/1hgRAsnLAKCBJZFFon1tkV/7gU8ToUA+I77qhACfXlCZ
DQvgc4Fk8Laq4HAxcx8pWF8=
=XYRQ
-----END PGP SIGNATURE-----

--Signature_Wed__18_May_2005_12_10_13_+0100_Ll.APH6dB29dvIgZ--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/