Re: [PATCH] dead keys in unicode console mode

From: Radovan Garabik (
Date: Tue Oct 09 2001 - 02:28:58 EST

On Tue, Oct 09, 2001 at 04:16:18AM +0200, Guest section DW wrote:
> On Mon, Oct 08, 2001 at 09:53:13PM +0200, Radovan Garabik wrote:
> > FWIW, this little patch makes it possible to
> > use dead keys in unicode console mode.
> > It is against 2.4.10, but should apply cleanly in
> > broader range of kernel versions.
> > struct kbdiacr {
> > - unsigned char diacr, base, result;
> > + unsigned char diacr, base;
> > + unsigned short int result; /* holds UCS2 value */
> > };
> And now all existing binaries that use the KDGKBDIACR ioctl
> dump core? And all existing binaries that use the KDSKBDIACR
> ioctl do very strange things?

well, of course, existing binaries need to be recompiled,
that's what sources are for...
(and because unsigned char is subset of unsigned short,
often they do not need to be even modified - btw how many
such binaries are there except of consoletools?)

> If you want to do something like this, a new ioctl and a new
> structure are necessary. If you design something new, keep

More like complete redesign of console driver would be needed.
that is what tries to do

> examples like Vietnamese in mind (with several accents on
> one symbol). We do support that now in the 8-bit world,

Think about someone who wants to use Vietnamese and Slovak
together (or Slovak and Russian as I need. Or Slovak, Lithuanian
and Russian - as one my friend needs. Or French and Hungarian as
other friend of mine needs. Or any other combination from
different ISO-8859 worlds). I converted my linux installation
almost completely to using UTF-8, and this (dead keys) was
a full stop, and I could forget about UTF-8.

> but complete support of the 16-bit world still requires
> some work. (And in the meantime Unicode has already gone beyond.)

I do not argue.

| Radovan Garabik |
| __..--^^^--..__    garabik @     |
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Mon Oct 15 2001 - 21:00:23 EST