GNOME Bugzilla – Bug 678100
g-s-d keyboard plugin segfaults for LANG=C (or unset language)
Last modified: 2012-06-14 14:22:05 UTC
Created attachment 216412 [details] backtrace This is a relatively recent regression; I haven't looked at bisecting, but I think it happened in the last few weeks.
This is due to no LANG environment variable. We should avoid crashing in this scenario (assume "C"?)
So the language_code_from_locale() will return NULL even for LANG=C, and we should clearly handle that. But I don't ye understand the mapping between locales and XKB layouts, so I'm not sure what the Right Thing here is.
+ Trace 230370
Thread 1 (LWP 730)
commit 76e527cfb81544773e21eeb746e0a01325692c14 Author: Bastien Nocera <hadess@hadess.net> Date: Thu Jun 14 15:19:01 2012 +0100 keyboard: Don't crash if LANG is empty Use en_US as the fallback locale if LANG isn't set. https://bugzilla.gnome.org/show_bug.cgi?id=678100