Re: [PATCH] Allow non-ASCII keys in keymap

Urs Janßen <[email protected]>
Newsgroups gmane.network.tin.devel
Message-ID <[email protected]>
On Wed, Oct 19, 2005 at 01:25:12PM +0200, Michael Bienia wrote:
> attached is a patch which adds support for non-ASCII keys to the keymap
> code.
> 
> A known problem is the misaligned helppage as expand_ctrl_chars isn't
> multibyte-safe yet. Another problem is that tin currently strips the
> charset from LANG (or the other values) and as the keymap code doesn't

this is in keymap.c:read_keymap_file() ~ line 330. we cut off
the codeset-portion as we didn't need it in the past and AFAIK its
notation is not standatized (e.g. on {sparc-sun,i386-pc}-solaris2.x and
rs6000-ibm-aix4.3.x it is de_DE.ISO8859-1; on ix86-pc-linux-gnu and
hppa1.1-hp-hpux11.00 it is de_DE.iso88591) which might lead to confusion
if the keymapfile is shared via NFS in a multi-os environment
(using tin_nl_langinfo(CODESET) might be a solution here).

> do any charset conversions it is impossible to use a keymap (with
> non-ASCII keys) for a locale which is available in multiple charsets.
> A seperate keymap for en_US and en_US.UTF-8 doesn't work but a separate
> keymap for de_DE@euro and de_DE.UTF-8 works.

which is a 'flaw' in the 'strip codeset off the locale' code in
read_keymap_file() ;-)

urs
-- 
"Only whimps use tape backup: _real_ men just upload their important stuff
 on ftp, and let the rest of the world mirror it ;)" - Linus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.