[ubuntu-dev] Bug#691998: TypeError: decoding Unicode is not supported

Stuart Prescott stuart at debian.org
Thu Nov 1 10:46:54 UTC 2012


Control: severity -1 serious
Control: tags -1 patch

This bug leaves the gdebi-kde executable completely broken -- it can't even 
generate help output let alone install packages.

In gdebi-kde, _ is set to the ugettext function rather than gettext ( (as 
opposed to gdebi-gtk where it is gettext). The result of 

	help=unicode(_("Run non-interactive (dangerous!)"),"UTF-8"))

is that unicode is trying to decode a unicode object as UTF-8 rather than a 
string. Python can't do that, so you get the reported error.

The attached patch removes what I believe to be the unicode(…, "UTF-8") call.

cheers
Stuart

-- 
Stuart Prescott    http://www.nanonanonano.net/   stuart at nanonanonano.net
Debian Developer   http://www.debian.org/         stuart at debian.org
GPG fingerprint    BE65 FD1E F4EA 08F3 23D4 3C6D 9FE8 B8CD 71C5 D1A8
GPG fingerprint    90E2 D2C1 AD14 6A1B 7EBB 891D BBC1 7EBB 1396 F2F7
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gdebi-kde-unicode.patch
Type: text/x-patch
Size: 1108 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/ubuntu-dev-team/attachments/20121101/de94b8f6/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/ubuntu-dev-team/attachments/20121101/de94b8f6/attachment.pgp>


More information about the ubuntu-dev-team mailing list