[Bug 1159286] YaST2: Keyboard.rb:306:in `current_kbd': undefined method `empty?' for nil:NilClass
http://bugzilla.novell.com/show_bug.cgi?id=1159286 http://bugzilla.novell.com/show_bug.cgi?id=1159286#c9 Josef Reidinger <jreidinger@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jreidinger@suse.com --- Comment #9 from Josef Reidinger <jreidinger@suse.com> --- 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/Keyboa... 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... 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: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com