Previous purchases are missing in Software Center when language is Brazilian Portuguese

Bug #875450 reported by Aldo Nogueira
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
software-center (Ubuntu)
In Progress
High
Gary Lasker

Bug Description

Steps to reproduce:
- Choose Brazilian Portuguese during login
- Open Software Center
- Select Reinstall Previous Purchases (Reinstalar compras anteriores in pt_BR) from the menu
- Enter you Launchpad login and password
- The list of previous purchases is empty

A work around:
- Open a terminal
- Type "export LANG=en.UTF-8" and "export LANGUAGE=en" (it's not exactly correct, but works)
- Call software-center
- It opens in English
- Select Reinstall Previous Purchases from the menu
- Family Farm is there :)

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: software-center 5.0.1.4
ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
Uname: Linux 3.0.0-12-generic x86_64
NonfreeKernelModules: fglrx
ApportVersion: 1.23-0ubuntu3
Architecture: amd64
Date: Sat Oct 15 23:58:58 2011
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=pt_BR:pt:en
 PATH=(custom, no user)
 LANG=pt_BR.UTF-8
 SHELL=/bin/bash
SourcePackage: software-center
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Aldo Nogueira (aldo-nogueira) wrote :
Revision history for this message
Aldo Nogueira (aldo-nogueira) wrote :

Terminal output when language is Brazilian Portuguese:
2011-10-16 01:12:57,923 - softwarecenter.ui.gtk3.em - INFO - EM's: 17 15 21
2011-10-16 01:13:01,215 - softwarecenter.backend.reviews - WARNING - Could not get usefulness from server, no username in config file
2011-10-16 01:13:01,298 - softwarecenter.ui.gtk3.utils - INFO - Softwarecenter style provider for ambiance Gtk theme: /usr/share/software-center/ui/gtk3/css/softwarecenter.css
2011-10-16 01:13:08,987 - softwarecenter.ui.gtk3.app - INFO - software-center-agent finished with status 0
2011-10-16 01:13:18,785 - softwarecenter.db.update - ERROR - error processing: 'ascii' codec can't decode byte 0xc3 in position 5: ordinal not in range(128)
Traceback (most recent call last):
  File "/usr/share/software-center/softwarecenter/db/update.py", line 494, in add_from_purchased_but_needs_reinstall_data
    item.name = _("%s (already purchased)") % item.name
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 5: ordinal not in range(128)

-------------------------------------------------------------

Terminal output when language is English (and it works):
(process:4081): Gtk-WARNING **: Locale not supported by C library.
 Using the fallback 'C' locale.
2011-10-16 01:06:55,702 - softwarecenter.ui.gtk3.em - INFO - EM's: 17 15 21
2011-10-16 01:06:55,922 - softwarecenter.ui.gtk3.app - ERROR - setlocale failed, resetting to C
Traceback (most recent call last):
  File "/usr/share/software-center/softwarecenter/ui/gtk3/app.py", line 187, in __init__
    locale.setlocale(locale.LC_ALL, "")
  File "/usr/lib/python2.7/locale.py", line 540, in setlocale
    return _setlocale(category, locale)
Error: unsupported locale setting
2011-10-16 01:06:56,707 - softwarecenter.backend.reviews - WARNING - Could not get usefulness from server, no username in config file
2011-10-16 01:06:56,773 - softwarecenter.ui.gtk3.utils - INFO - Softwarecenter style provider for ambiance Gtk theme: /usr/share/software-center/ui/gtk3/css/softwarecenter.css
2011-10-16 01:06:57,042 - softwarecenter.fixme - WARNING - logs to the root logger: '('/usr/share/software-center/update-software-center-agent', 46, '<module>')'
2011-10-16 01:06:57,042 - root - WARNING - setlocale failed with 'unsupported locale setting'
2011-10-16 01:07:02,920 - softwarecenter.ui.gtk3.app - INFO - software-center-agent finished with status 0

Changed in software-center (Ubuntu):
status: New → Triaged
importance: Undecided → High
assignee: nobody → Gary Lasker (gary-lasker)
Changed in software-center (Ubuntu):
status: Triaged → In Progress
Revision history for this message
Gary Lasker (gary-lasker) wrote :

Hello Aldo, thank you for your bug report and for your particularly useful debug info. :) It provides all the information that we need to fix this.

As it turns out, this is a duplicate of an earlier bug 873917, so I will mark this as a duplicate of that one. Please track bug 873917 for the status of the fix, which should be available in an update soon.

Thanks again!

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.