Merge lp:~gary-lasker/software-center/fix-crash-lp967036 into lp:software-center

Proposed by Gary Lasker
Status: Merged
Merged at revision: 2934
Proposed branch: lp:~gary-lasker/software-center/fix-crash-lp967036
Merge into: lp:software-center
Diff against target: 20 lines (+2/-1)
1 file modified
softwarecenter/ui/gtk3/widgets/labels.py (+2/-1)
To merge this branch: bzr merge lp:~gary-lasker/software-center/fix-crash-lp967036
Reviewer Review Type Date Requested Status
Michael Vogt Approve
Review via email: mp+100003@code.launchpad.net

Description of the change

Small branch to fix a crash due to a UnicodeDecodeError when accessing the short description for H/W requirements.

Thanks!

To post a comment you must log in.
Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for this fix.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'softwarecenter/ui/gtk3/widgets/labels.py'
--- softwarecenter/ui/gtk3/widgets/labels.py 2012-03-15 21:47:29 +0000
+++ softwarecenter/ui/gtk3/widgets/labels.py 2012-03-29 19:11:22 +0000
@@ -20,6 +20,7 @@
20from gettext import gettext as _20from gettext import gettext as _
2121
22from softwarecenter.hw import get_hw_short_description22from softwarecenter.hw import get_hw_short_description
23from softwarecenter.utils import utf8
2324
2425
25class HardwareRequirementsLabel(Gtk.HBox):26class HardwareRequirementsLabel(Gtk.HBox):
@@ -70,7 +71,7 @@
70 s = self.LABEL71 s = self.LABEL
71 return _(s) % {72 return _(s) % {
72 "sym": sym,73 "sym": sym,
73 "hardware": _(get_hw_short_description(self.tag))74 "hardware": _(utf8(get_hw_short_description(self.tag)))
74 }75 }
7576
76 def set_hardware_requirement(self, tag, result):77 def set_hardware_requirement(self, tag, result):

Subscribers

People subscribed via source and target branches