Commit 6081eb70 authored by Jason R. Coombs's avatar Jason R. Coombs

Read metadata as utf-8; Fixes failure when LC_ALL=C

parent d6938501
......@@ -2021,7 +2021,7 @@ class FileMetadata(EmptyProvider):
def get_metadata(self, name):
if name=='PKG-INFO':
with open(self.path,'rU') as f:
with io.open(self.path, 'rU', encoding='utf-8') as f:
metadata = f.read()
return metadata
raise KeyError("No metadata except PKG-INFO is available")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment