External plugins not working when locale is ml_IN

Bug #368391 reported by Santhosh Thottingal
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gedit
New
Undecided
Unassigned
gedit (Ubuntu)
Confirmed
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: gedit

The external plugins are not working in Gedit when the locale is Malayalam(ml_IN). Launching from console shows python error trace and External Plugins menus are not appearing in Tools menu.
error trace is given below
$ LANG=ml_IN gedit
Traceback (most recent call last):
  File "/usr/lib/gedit-2/plugins/externaltools/__init__.py", line 184, in activate
    helper = ExternalToolsWindowHelper(self, window)
  File "/usr/lib/gedit-2/plugins/externaltools/__init__.py", line 130, in __init__
    manager.insert_action_group(self._action_group, -1)
  File "/usr/lib/gedit-2/plugins/externaltools/__init__.py", line 181, in __init__
    ToolLibrary().set_locations(self.get_data_dir())
  File "/usr/lib/gedit-2/plugins/externaltools/library.py", line 59, in set_locations
    self.tree = ToolDirectory(self, '')
  File "/usr/lib/gedit-2/plugins/externaltools/library.py", line 139, in __init__
    self._load()
  File "/usr/lib/gedit-2/plugins/externaltools/library.py", line 160, in _load
    self.tools.append(Tool(self, p))
  File "/usr/lib/gedit-2/plugins/externaltools/library.py", line 207, in __init__
    self._load()
  File "/usr/lib/gedit-2/plugins/externaltools/library.py", line 219, in _load
    lang = locale.getlocale(locale.LC_MESSAGES)[0]
  File "/usr/lib/python2.6/locale.py", line 497, in getlocale
    return _parse_localename(localename)
  File "/usr/lib/python2.6/locale.py", line 410, in _parse_localename
    raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: ml_IN
Traceback (most recent call last):
  File "/usr/lib/gedit-2/plugins/externaltools/__init__.py", line 192, in update_ui
    window.get_data(self.WINDOW_DATA_KEY).update_ui()
AttributeError: 'NoneType' object has no attribute 'update_ui'
Traceback (most recent call last):
  File "/usr/lib/gedit-2/plugins/externaltools/__init__.py", line 192, in update_ui
    window.get_data(self.WINDOW_DATA_KEY).update_ui()
AttributeError: 'NoneType' object has no attribute 'update_ui'
Traceback (most recent call last):
  File "/usr/lib/gedit-2/plugins/externaltools/__init__.py", line 192, in update_ui
    window.get_data(self.WINDOW_DATA_KEY).update_ui()
AttributeError: 'NoneType' object has no attribute 'update_ui'
Traceback (most recent call last):
  File "/usr/lib/gedit-2/plugins/externaltools/__init__.py", line 188, in deactivate
    window.get_data(self.WINDOW_DATA_KEY).deactivate()
AttributeError: 'NoneType' object has no attribute 'deactivate'

Version: Ubuntu 9.04
Locale Environment Malayalam(ml_IN)
Always reproducible

description: updated
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report, could you run "locale -a" and add the log to the bug?

Changed in gedit (Ubuntu):
assignee: nobody → Ubuntu Desktop Bugs (desktop-bugs)
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Santhosh Thottingal (santhosh-thottingal) wrote :

Locale exists. After the console errors, gedit is opened and interface is in ml_IN
$ locale -a
bn_BD
bn_IN
C
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IN
en_NG
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZW.utf8
hi_IN
ml_IN
POSIX
ta_IN

Revision history for this message
Sebastien Bacher (seb128) wrote :

the bug should be sent to the code writters on bugzilla.gnome.org by somebody having the issue

Changed in gedit (Ubuntu):
status: Incomplete → New
Revision history for this message
Chris Coulson (chrisccoulson) wrote :

Could you try if this is still an issue in Karmic?

Changed in gedit (Ubuntu):
status: New → Incomplete
Revision history for this message
Santhosh Thottingal (santhosh-thottingal) wrote :

This bug is dependent on this python bug: http://bugs.python.org/issue6895
Reproducible in Karmic too when external plugins activated and locale is ml_IN (can be any locale without encoding in localename string and python's locale.py does not have a locale alias for that)

Changed in gedit (Ubuntu):
status: Incomplete → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.