projects
/
platform
/
upstream
/
ibus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ec7351
)
Fix ibus-setup SEGV on C locale.
author
fujiwarat
<takao.fujiwara1@gmail.com>
Thu, 5 Apr 2012 01:44:26 +0000
(10:44 +0900)
committer
fujiwarat
<takao.fujiwara1@gmail.com>
Thu, 5 Apr 2012 01:44:26 +0000
(10:44 +0900)
TEST=Linux desktop
Review URL: https://codereview.appspot.com/5976076
setup/enginecombobox.py
patch
|
blob
|
history
diff --git
a/setup/enginecombobox.py
b/setup/enginecombobox.py
index
8d1424b
..
0ac7368
100644
(file)
--- a/
setup/enginecombobox.py
+++ b/
setup/enginecombobox.py
@@
-75,7
+75,11
@@
class EngineComboBox(Gtk.ComboBox):
keys = langs.keys()
keys.sort(locale.strcoll)
- current_lang = IBus.get_language_name(locale.getlocale()[0])
+ loc = locale.getlocale()[0]
+ # None on C locale
+ if loc == None:
+ loc = 'en_US'
+ current_lang = IBus.get_language_name(loc)
# move current language to the first place
if current_lang in keys:
keys.remove(current_lang)