tags 391965 patch
thanks

Attaching patch for this issue. 

-- 
        Michal Čihař | http://cihar.com | http://blog.cihar.com
=== modified file 'software-properties-gtk' (properties changed)
=== modified file 'softwareproperties/AptAuth.py'
--- softwareproperties/AptAuth.py	2007-01-18 15:22:20 +0000
+++ softwareproperties/AptAuth.py	2007-12-19 03:09:31 +0000
@@ -51,6 +51,14 @@
         #print self.list_opt
         p = subprocess.Popen(self.list_opt,stdout=PIPE).stdout
         for line in p.readlines():
+	    line = line.strip()
+	    # Decode escaped characters
+	    line = eval('"' + line + '"')
+	    # Try to convert string from unicode
+	    try:
+		line = unicode(line, 'utf-8')
+	    except UnicodeDecodeError:
+		pass
             fields = line.split(":")
             if fields[0] == "pub":
                 name = fields[9]

Attachment: signature.asc
Description: PGP signature

Reply via email to