GTG

Crash with Russian locale

Bug #834748 reported by mrk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GTG
Fix Released
High
Izidor Matušov

Bug Description

Good day!

I'm sorry, but i have yet another release-stopper. How to reproduce:
1. bzr branch lp:gtg
2. mv ~/.local/share/gtg ~/.local/share/gtg.backup
3. setenv LANG ru_RU.UTF-8 (or export LANG=ru_RU.UTF-8 if using bash)
4. start gtg
5. enable 'notification area' plugin
6. open first sample task added by gtg itself
7. close the window of this task

You'll get this traceback:
"""
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/GTG/tools/liblarch/tree.py", line 174, in _process_queue
    func(*action[1:])
  File "/usr/local/lib/python2.7/site-packages/GTG/tools/liblarch/tree.py", line 352, in _modify_node
    self._callback('node-modified', node_id)
  File "/usr/local/lib/python2.7/site-packages/GTG/tools/liblarch/tree.py", line 142, in _callback
    func(node_id)
  File "/usr/local/lib/python2.7/site-packages/GTG/tools/liblarch/filteredtree.py", line 163, in __external_modify
    if not self.update_node(node_id):
  File "/usr/local/lib/python2.7/site-packages/GTG/tools/liblarch/filteredtree.py", line 235, in update_node
    self.callback(action, node_id, path)
  File "/usr/local/lib/python2.7/site-packages/GTG/tools/liblarch/filteredtree.py", line 113, in callback
    func(node_id, path)
  File "/usr/local/lib/python2.7/site-packages/GTG/tools/liblarch/__init__.py", line 219, in __emit
    func(node_id,path)
  File "/usr/local/lib/python2.7/site-packages/GTG/plugins/notification_area/notification_area.py", line 196, in __on_task_added
    position = self.__tasks_in_menu.sorted_insert((title, tid, menu_item))
  File "/usr/local/lib/python2.7/site-packages/GTG/tools/sorted_dict.py", line 43, in sorted_insert
    position = bisect.bisect(self.__sorted_list, sort_elem)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xd1 in position 29: invalid continuation byte
"""

This problem can NOT be reproduced with English sample tasks (that were created by gtg when starting it with C locale in first time).

Dunno where the problem may be - in the gtg code or some invalid localization.

mrk (cvs-src)
description: updated
Revision history for this message
Izidor Matušov (izidor) wrote :

Hi mrk,

Thank you for your bug report. It is solved in rev. 987. Please, test other possible localization errors as well!

Changed in gtg:
status: New → Fix Committed
importance: Undecided → High
assignee: nobody → Izidor Matušov (izidor)
milestone: none → 0.2.9
description: updated
Revision history for this message
mrk (cvs-src) wrote :

It was really fast! Thank you. Sure i'll let you guys know if anything goes wrong.

Izidor Matušov (izidor)
Changed in gtg:
status: Fix Committed → Fix Released
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.