Josef Reidinger changed bug 1159286
What Removed Added
CC   jreidinger@suse.com

Comment # 9 on bug 1159286 from
Sadly not fixed. it failing when reading values

2019-12-16 15:13:44 <1> localhost.localdomain(7541) [Ruby]
modules/Keyboard.rb:103 keyboard_on_entry: 

https://github.com/yast/yast-country/blob/master/keyboard/src/modules/Keyboard.rb#L99

but @curr_kbd should not be nil. So we need to sanitize it in reading.

But why read failed?

localectl has its value 2019-12-16 15:13:44 <1> localhost.localdomain(7541)
[Ruby] lib/cheetah.rb:208 Standard output:        VC Keymap: lt

so it see lt. but in data we have only lt.baltic.

https://github.com/yast/yast-country/blob/master/keyboard/src/data/keyboards.rb#L180

So what is problem?
We do not know all variants of given language and we set lt.baltic, but there
are more variants. E.g. localectl knows this keymaps for lt:

lt
lt-ibm
lt-lekp
lt-lekpa
lt-std
lt-us
lt.baltic
lt.l4
lt.std

I am not sure how to handle it. Probably we need to fallback somehow? at least
we should not crash if given keymap missing in our map.


You are receiving this mail because: