Categores with special chars (like umlauts) are empty

Bug #288767 reported by Oliver Grawert
4
Affects Status Importance Assigned to Milestone
Kourou
New
Undecided
Unassigned
kourou (Ubuntu)
Fix Released
High
Steve Kowalik
Intrepid
Fix Released
High
Steve Kowalik

Bug Description

Binary package hint: kourou

in a german mid install where category Accessories is called Zubehör and Office is Büro both categories are empty, seems kourou doesnt parse them properly

Related branches

Oliver Grawert (ogra)
Changed in kourou:
importance: Undecided → High
Loïc Minier (lool)
Changed in kourou:
status: New → Confirmed
assignee: nobody → stevenk
Revision history for this message
Oliver Grawert (ogra) wrote :

ubuntu@ubuntu-laptop:~/ubuntu$ bzr diff
=== modified file 'kourou.py'
the following one line patch fixes the issue:

--- kourou.py 2008-10-24 14:35:07 +0000
+++ kourou.py 2008-10-24 18:07:24 +0000
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
 # kourou - a launcher for Ubuntu MID
 # (C) 2008 Canonical Ltd
 # Author: Steve Kowalik <email address hidden>
@@ -103,7 +104,7 @@
                 for entry in self.categories[cat]:
                     self.model.append(entry)
         else:
- for entry in self.categories[current_cat]:
+ for entry in self.categories[unicode(current_cat)]:
                 self.model.append(entry)

     def fetch_icon(self, icon_name, theme):

Revision history for this message
Oliver Grawert (ogra) wrote :

whoops, that has one line to much ...

ubuntu@ubuntu-laptop:~/ubuntu$ bzr diff
=== modified file 'kourou.py'
--- kourou.py 2008-10-24 14:35:07 +0000
+++ kourou.py 2008-10-24 18:17:47 +0000
@@ -103,7 +103,7 @@
                 for entry in self.categories[cat]:
                     self.model.append(entry)
         else:
- for entry in self.categories[current_cat]:
+ for entry in self.categories[unicode(current_cat)]:
                 self.model.append(entry)

     def fetch_icon(self, icon_name, theme):

Revision history for this message
Loïc Minier (lool) wrote :

Works for me, thanks!

Changed in kourou:
assignee: nobody → stevenk
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package kourou - 0.10-0ubuntu1

---------------
kourou (0.10-0ubuntu1) intrepid; urgency=low

  * New upstream release
    - add proper unicode handling for Category parsing (LP: #288767)

 -- Oliver Grawert <email address hidden> Fri, 24 Oct 2008 21:06:57 +0200

Changed in kourou:
status: Confirmed → Fix Released
Curtis Hovey (sinzui)
Changed in kourou:
assignee: Steve Kowalik (stevenk) → Curtis Hovey (sinzui)
assignee: Curtis Hovey (sinzui) → nobody
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.