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/   stu...@nanonanonano.net
Debian Developer   http://www.debian.org/         stu...@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
diff -Nru gdebi-0.8.6/debian/changelog gdebi-0.8.6+nmu1/debian/changelog
--- gdebi-0.8.6/debian/changelog	2012-10-11 21:07:45.000000000 +0100
+++ gdebi-0.8.6+nmu1/debian/changelog	2012-11-01 09:57:59.000000000 +0000
@@ -1,3 +1,10 @@
+gdebi (0.8.6+nmu1) UNRELEASED; urgency=low
+
+  * Non-maintainer upload.
+  * Don't try to decode a unicode string as UTF-8 in gdeb-kde (Closes: #691998)
+
+ -- Stuart Prescott <stu...@debian.org>  Thu, 01 Nov 2012 09:47:13 +0000
+
 gdebi (0.8.6) unstable; urgency=low
 
   * gdebi, GDebi/GDebiCli.py:
diff -Nru gdebi-0.8.6/gdebi-kde gdebi-0.8.6+nmu1/gdebi-kde
--- gdebi-0.8.6/gdebi-kde	2012-10-11 20:56:58.000000000 +0100
+++ gdebi-0.8.6+nmu1/gdebi-kde	2012-11-01 09:57:59.000000000 +0000
@@ -64,7 +64,7 @@
     parser.add_option("-n", "--non-interactive",
                       action="store_true", dest="non_interactive",
                       default=False,
-                      help=unicode(_("Run non-interactive (dangerous!)"),"UTF-8"))
+                      help=_("Run non-interactive (dangerous!)"))
     (options, args) = parser.parse_args()
     
     try:

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to