Commit 91379d9c authored by Stefan H. Holek's avatar Stefan H. Holek

Add comments.

--HG--
branch : distribute
extra : rebase_source : 2d4ac9964b247122715c8296158c97d1f11adf89
parent b7c5bd34
......@@ -286,6 +286,7 @@ class FileList(_FileList):
if os.path.exists(path):
self.files.append(path)
elif sys.platform == 'win32':
# NTFS can store UTF-8 filenames as is
if os.path.exists(path.encode('utf-8')):
self.files.append(path)
except UnicodeEncodeError:
......
......@@ -282,6 +282,7 @@ class sdist(_sdist):
log.info("reading manifest file '%s'", self.manifest)
manifest = open(self.manifest, 'rbU')
for line in manifest:
# The manifest must contain UTF-8. See #303.
if sys.version_info >= (3,):
try:
line = line.decode('UTF-8')
......
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