On Fri, Oct 01, 2004 at 06:49:00AM +0200, Andries Brouwer wrote:
> On Thu, Sep 30, 2004 at 11:55:25PM +0100, Roger Leigh wrote:
> 
> > +   if (kbd_mode == K_UNICODE && KTYP(code) < syms_size && KVAL(code) < 0x80)
> > +           return code;
> 
> > -   if (KTYP(code) == KT_LATIN)
> > +   if (KTYP(code) == KT_LATIN || (code ^ 0xF000) < 0x80)
> 
> > It may well be useful for kbd ksyms.c also, though the implementations
> > are sufficiently different that I wasn't sure exactly how to implement
> > it for kbd.
> 
> Thanks! Will look at it.
> 
> (But - so far no kbd bug has appeared. Is there behaviour that
> must be corrected?)
> 
> (And if something is wrong when unicode_{start,stop} is used,
> can you include the contents of these files? I have noticed
> that various vendors like to fiddle with them.)

I did not have time to send explanations yesterday, here they are.
You may also read the message I sent to you this summer:
  Date: Tue, 3 Aug 2004 00:14:17 +0200
  To: Andries Brouwer
  Subject: Kbd patches
  Message-ID: <[EMAIL PROTECTED]>

The new Debian installer is text based and works in UTF-8 mode (keyboard
and output).  Some users complained that keyboard did not work with
non-ASCII characters, which could be solved by converting all keymaps
needed during installation to Unicode notation.
But OTOH most default locales after installation use legacy encodings
and not UTF-8.  So if we want to let users input non-ASCII characters
during and after installation, two keymaps are needed.
For this reason, kbd was patched to read keymaps in a more consistent
manner, e.g. in a French keymap, eacute, 0xe9 or U+00E9 are treated
exactly the same way (provided that charset was declared), both in
UTF-8 or ASCII mode, which means that a single keymap can be read
both in UTF-8 and legacy encodings, and non-ASCII characters work
as expected.

As you know, Debian uses its own console-tools instead of kbd, but
I mentioned kbd above for clarity.  There is also a kbd package in
Debian, which I maintain for a couple of months, here is the latest
patch against kbd-1.12 related to this issue.  It includes a fix
for the problem reported by Roger Leigh, which does not affect
pristine kbd 1.12.

Denis

Attachment: 90_read_keymaps_fmt.dpatch.gz
Description: Binary data

Reply via email to