first language is displayed as ZZ
Brought to you by:
aanatoly
My standard fbxkb configuration:
setxkbmap lv,ru -option grp:caps_toggle -option terminate:ctrl_alt_bksp
With such config fbxkb shows ZZ instead of Latvian flag.
If I put Russian as first language, then fbxkb displays it as ZZ.
Debug logs showed, that the problem is in KBD description line parsing:
read_kbd_description:359 : sym_name=pc+ru+lv:2+inet(evdev)+capslock(grouplock)+terminate(ctrl_alt_bksp)
The suggestion is to add a token length check to fbxkb.c.
Patch is attached.
Seems to fix the problem.