[Bug 721778] Re: software-properties-gtk crashed with UnicodeDecodeError in __init__(): 'ascii' codec can't decode byte 0xc2 in position 2: ordinal not in range(128)
Martin Pitt
martin.pitt at ubuntu.com
Wed Mar 2 12:13:13 UTC 2011
Thanks for this! I can replicate the crash here, the problem is the
mixing of unicode and str here. As set_label() eventually expects an
UTF-8 str, I think it's cleaner to explicitly encode the Unicode as
UTF-8:
- "repository, for example '%s'.") % ("<i>%s</i>" % example)
+ "repository, for example '%s'.") % ("<i>%s</i>" % example).encode('UTF-8')
I committed this to bzr now.
** Changed in: software-properties (Ubuntu)
Status: Confirmed => Fix Committed
** Changed in: software-properties (Ubuntu)
Assignee: (unassigned) => Martin Pitt (pitti)
--
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is a direct subscriber.
https://bugs.launchpad.net/bugs/721778
Title:
software-properties-gtk crashed with UnicodeDecodeError in __init__():
'ascii' codec can't decode byte 0xc2 in position 2: ordinal not in
range(128)
Status in “software-properties” package in Ubuntu:
Fix Released
Bug description:
Crash right after login. Therefore - no more information to give. :-)
ProblemType: Crash
DistroRelease: Ubuntu 11.04
Package: software-properties-gtk 0.80.2
ProcVersionSignature: Ubuntu 2.6.38-4.31-generic 2.6.38-rc5
Uname: Linux 2.6.38-4-generic i686
Architecture: i386
Date: Sat Feb 19 02:26:31 2011
ExecutablePath: /usr/bin/software-properties-gtk
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha i386 (20110202)
InterpreterPath: /usr/bin/python2.7
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/software-properties-gtk -n -t 58720385
ProcEnviron:
LANGUAGE=de_AT:de:en_GB:en
PATH=(custom, no user)
LANG=de_AT.UTF-8
LC_MESSAGES=de_AT.utf8
SHELL=/bin/bash
PythonArgs: ['/usr/bin/software-properties-gtk', '-n', '-t', '58720385']
SourcePackage: software-properties
Title: software-properties-gtk crashed with UnicodeDecodeError in __init__(): 'ascii' codec can't decode byte 0xc2 in position 2: ordinal not in range(128)
UserGroups:
More information about the Ubuntu-sponsors
mailing list