ubuntuone-control-panel-qt crashed with UnicodeDecodeError in _handle_finished(): 'ascii' codec can't decode byte 0xc3 in position 3007: ordinal not in range(128)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntuone-control-panel (Ubuntu) |
Confirmed
|
High
|
Diego Sarmentero |
Bug Description
TEST CASE
1. Launch ubuntuone-
2. Switch to 'Account Information'
ACTUAL RESULT:
Traceback (most recent call last):
File "/usr/lib/
content = unicode(content)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 2071: ordinal not in range(128)
Ubuntu One init crash.
ProblemType: Crash
DistroRelease: Ubuntu 12.04
Package: ubuntuone-
ProcVersionSign
Uname: Linux 3.2.0-22-generic x86_64
ApportVersion: 2.0-0ubuntu4
Architecture: amd64
Date: Thu Apr 5 14:08:25 2012
ExecutablePath: /usr/bin/
InstallationMedia: Kubuntu 12.04 LTS "Precise Pangolin" - Beta amd64 (20120327)
InterpreterPath: /usr/bin/python2.7
PackageArchitec
ProcCmdline: /usr/bin/python /usr/bin/
ProcEnviron:
PATH=(custom, user)
LANG=es_ES.UTF-8
SHELL=/bin/bash
PythonArgs: ['/usr/
SourcePackage: ubuntuone-
Title: ubuntuone-
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo vboxusers
tags: | removed: need-duplicate-check |
Changed in ubuntuone-control-panel (Ubuntu): | |
importance: | Undecided → Medium |
visibility: | private → public |
Changed in ubuntuone-control-panel (Ubuntu): | |
importance: | Medium → High |
tags: | added: rls-q-incoming |
description: | updated |
tags: | added: qa-manual-testing |
The code is assuming that the bytes coming from the network are in the same encoding as the system encoding used by python.
This is wrong, and should be fixed.