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:
I committed the following fix to the Debian branch which should fix this problem.
=== modified file 'apt/package.py' dpkg/info/ %s.list" % self.name read(). decode( ).split( "\n") read(). decode( "utf-8" ).split( u"\n")
finally:
file_ list.close( )
--- 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/
try:
- file_list = open(path)
+ file_list = open(path, "rb")
try:
- return file_list.
+ return file_list.
except EnvironmentError: