Comment 4 for bug 407953

Revision history for this message
Julian Andres Klode (juliank) wrote :

I committed the following fix to the Debian branch which should fix this problem.

=== modified file 'apt/package.py'
--- apt/package.py 2010-03-08 14:04:39 +0000
+++ apt/package.py 2010-03-30 10:58:26 +0000
@@ -955,9 +955,9 @@ class Package(object):
         """
         path = "/var/lib/dpkg/info/%s.list" % self.name
         try:
- file_list = open(path)
+ file_list = open(path, "rb")
             try:
- return file_list.read().decode().split("\n")
+ return file_list.read().decode("utf-8").split(u"\n")
             finally:
                 file_list.close()
         except EnvironmentError: