Subject: Re: Keymap import from OpenBSD
To: None <tech-kern@netbsd.org>
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>
List: tech-kern
Date: 07/01/2005 09:35:07
On Fri, Jul 01, 2005 at 01:45:03AM +0100, Rui Paulo wrote:
> Hi
> I'm trying to add more keymaps to NetBSD by importing them from OpenBSD.
> The following patch adds the keymaps present in OpenBSD but not already
> in NetBSD, although I need people with the actual keyboards to test it.
> 
> Also, the OpenBSD team developed an awk script to convert PS/2 keymaps
> into USB keymaps. I don't know how good it is, but I guess we should do
> something similar, no?
> 
> I'm not including wscons.conf and wsconsctl(8) man page diffs.
> 
> Index: dev/wscons/wsksymdef.h
> ===================================================================
> RCS file: /cvsroot/src/sys/dev/wscons/wsksymdef.h,v
> retrieving revision 1.54
> diff -u -r1.54 wsksymdef.h
> --- dev/wscons/wsksymdef.h	8 Jun 2005 09:11:09 -0000	1.54
> +++ dev/wscons/wsksymdef.h	1 Jul 2005 00:42:13 -0000
> @@ -276,6 +276,191 @@
>  #define	KS_dead_cedilla 	0x0327
>  
>  /*
> + * Group Cyrillic (koi8-r)
> + */
> +
> +#define KS_Cyrillic_A		0xe1
[snip]
>  	/* placeholders */
> 
> 		-- Rui Paulo

This import will break wsconsctl(8).  It looks up keysyms by value.  This
lookup is no longer unique because  KS_aacute == 0xe1 == KS_Cyrillic_A.

-- 
Juergen Hannken-Illjes - hannken@eis.cs.tu-bs.de - TU Braunschweig (Germany)