Issue #9561: distutils now reads and writes egg-info files using UTF-8

instead of the locale encoding.
This commit is contained in:
Victor Stinner 2011-09-05 23:44:56 +02:00
parent a404b49321
commit a1bea6e10c
3 changed files with 8 additions and 8 deletions

View file

@ -40,9 +40,8 @@ class install_egg_info(Command):
"Creating "+self.install_dir)
log.info("Writing %s", target)
if not self.dry_run:
f = open(target, 'w')
self.distribution.metadata.write_pkg_file(f)
f.close()
with open(target, 'w', encoding='UTF-8') as f:
self.distribution.metadata.write_pkg_file(f)
def get_outputs(self):
return self.outputs