"Install packages" button insensitive

Bug #1031346 reported by Märt Põder
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lubuntu-software-center (Ubuntu)
Fix Committed
Undecided
Märt Põder

Bug Description

Lubuntu 12.04, EE_et locale

Whatever I put in the basket, "Install packages" button remains insensitive

Tags: patch
Revision history for this message
Märt Põder (boamaod) wrote :

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/LSC/widgets/pages.py", line 69, in change_section
    self.basket_function()
  File "/usr/lib/python2.7/dist-packages/LSC/main.py", line 426, in refresh_app_basket
    self.ui.apps_basket.model.append([" "*4+item+_(" (requested by ")+items+")", apt_pkg.size_to_str(self.info.size), apt_pkg.size_to_str(self.info.installed_size), self.info.ver_str])
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 8: ordinal not in range(128)

And there's basically same thing on line 422. If "requested by" is localised in UTF-8, the exception in thrown.

Revision history for this message
Märt Põder (boamaod) wrote :

Probably the similar thing as in bug #947502

Revision history for this message
Märt Põder (boamaod) wrote :
Revision history for this message
Märt Põder (boamaod) wrote :

It's actually not plain localisation that causes this, but some other kind of conflict of encodings. It seems to me that this is not the only place this problem occurs, so maybe it needs some broader knowledge of lubuntu-software-center code to fix it properly.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "lsc-enc.patch" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Revision history for this message
Stephen Smally (stephen-smally) wrote :

Hi Märt, thank you for your work, feel free to apply the patch and your other changes to the main lsc branch.

Märt Põder (boamaod)
Changed in lubuntu-software-center (Ubuntu):
assignee: nobody → Märt Põder (boamaod)
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.