Subject: can't load some xkb multi-layouts
To: None <tech-x11@netbsd.org>
From: Jukka Salmi <j+nbsd@2005.salmi.ch>
List: tech-x11
Date: 08/09/2005 20:31:58
Hi,

using XFree86 4.5.0 (HEAD xsrc) on -current NetBSD/i386 I see the
following behaviour:

$ setxkbmap -rules xfree86 -model pc105 -layout us,de \
	-option grp:alt_shift_toggle
$ echo $?
0

...but...


$ setxkbmap -rules xfree86 -model pc105 -layout us,de_CH \
	-option grp:alt_shift_toggle
Error loading new keyboard description
$ echo $?
251

(note the different layout).

Tracing the latter command shows:

8794 setxkbmap CALL  write(4,0x8051000,0x78)
8794 setxkbmap GIO   fd 4 wrote 120 bytes
     "\M^R\^W\^^\0\0\^A\M-?\0\M^?\0\^A\0\0\^Wxfree86+aliases(qwerty)\bcomple\
      te\bcomplete5pc/pc(pc105)+pc/us+pc/de_CH:2+group(alt_shift_toggle)\
              pc(pc105)\0"
8794 setxkbmap RET   write 120/0x78
8794 setxkbmap CALL  read(4,0xbfbfe710,0x20)
8794 setxkbmap RET   read -1 errno 35 Resource temporarily unavailable


Any hints why switching `us' and `de' works, but `us' and `de_CH' does
not?

TIA, Jukka

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~