← Back to team overview

gtg team mailing list archive

[Merge] lp:~izidor/gtg/bug987067 into lp:gtg

 

Izidor Matušov has proposed merging lp:~izidor/gtg/bug987067 into lp:gtg.

Requested reviews:
  Gtg developers (gtg)
Related bugs:
  Bug #987067 in Getting Things GNOME!: "GTG crashed on adding new task"
  https://bugs.launchpad.net/gtg/+bug/987067

For more details, see:
https://code.launchpad.net/~izidor/gtg/bug987067/+merge/114638

This patch converts all titles into unicode if they are ASCII strings (and have problems with UTF8)
-- 
https://code.launchpad.net/~izidor/gtg/bug987067/+merge/114638
Your team Gtg developers is requested to review the proposed merge of lp:~izidor/gtg/bug987067 into lp:gtg.
=== modified file 'GTG/core/task.py'
--- GTG/core/task.py	2012-06-09 13:48:34 +0000
+++ GTG/core/task.py	2012-07-12 13:27:23 +0000
@@ -127,6 +127,8 @@
         #We should check for other task with the same title
         #In that case, we should add a number (like Tomboy does)
         old_title = self.title
+        if isinstance(title, str):
+            title = title.decode('utf8')
         if title:
             self.title = title.strip('\t\n')
         else: