Re: [PATCH] dead keys in unicode console mode

Radovan Garabik (garabik@melkor.dnp.fmph.uniba.sk)
Tue, 9 Oct 2001 09:28:58 +0200


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 linuxconsole.sf.net 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 http://melkor.dnp.fmph.uniba.sk/~garabik/ |
| __..--^^^--..__    garabik @ melkor.dnp.fmph.uniba.sk     |
 -----------------------------------------------------------
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 majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/