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
Bugs, which is subscribed to Ubuntu.
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)
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs