Comment 17 for bug 967036

Anthony Wong (anthonywong) wrote :

I have to re-open this bug because I still have this problem even though my software-center is 5.2.1, problem occurs when the "More Info" button of Ryzom is pressed when locale is in zh_TW.UTF-8, but does not happen in en_US.UTF-8.

$ dpkg -l software-center | grep software-center
ii software-center 5.2.1 Utility for browsing, installing, and removing software

Traceback (most recent call last):
  File "/usr/share/software-center/softwarecenter/utils.py", line 118, in wrapper
    f(*args, **kwargs)
  File "/usr/share/software-center/softwarecenter/ui/gtk3/panes/availablepane.py", line 751, in on_application_activated
    self.display_details_page)
  File "/usr/share/software-center/softwarecenter/ui/gtk3/session/viewmanager.py", line 190, in display_page
    callback(page, view_state)
  File "/usr/share/software-center/softwarecenter/ui/gtk3/panes/availablepane.py", line 685, in display_details_page
    SoftwarePane.display_details_page(self, page, view_state)
  File "/usr/share/software-center/softwarecenter/ui/gtk3/panes/softwarepane.py", line 464, in display_details_page
    self.app_details_view.show_app(view_state.application)
  File "/usr/share/software-center/softwarecenter/ui/gtk3/views/appdetailsview.py", line 1733, in show_app
    self._update_minimal(self.app_details)
  File "/usr/share/software-center/softwarecenter/ui/gtk3/views/appdetailsview.py", line 1567, in _update_minimal
    self._update_pkg_info_table(app_details)
  File "/usr/share/software-center/softwarecenter/ui/gtk3/views/appdetailsview.py", line 1491, in _update_pkg_info_table
    self.hardware_info.set_value(app_details.hardware_requirements)
  File "/usr/share/software-center/softwarecenter/ui/gtk3/views/appdetailsview.py", line 540, in set_value
    self.value_label.set_hardware_requirements(value)
  File "/usr/share/software-center/softwarecenter/ui/gtk3/widgets/labels.py", line 105, in set_hardware_requirements
    label.set_hardware_requirement(tag, sup)
  File "/usr/share/software-center/softwarecenter/ui/gtk3/widgets/labels.py", line 84, in set_hardware_requirement
    self._label.set_markup(self.get_label())
  File "/usr/share/software-center/softwarecenter/ui/gtk3/widgets/labels.py", line 78, in get_label
    "hardware": unicode(short_descr, "utf8", "ignore")
UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 19: ordinal not in range(128)