Also specify encoding when reading setup.cfg (#12320)

This commit is contained in:
Éric Araujo 2011-06-12 23:02:57 +02:00
parent 043f5ae697
commit 8d233f2cb0

View file

@ -1044,7 +1044,7 @@ def cfg_to_args(path='setup.cfg'):
if not os.path.exists(path):
raise PackagingFileError("file '%s' does not exist" %
os.path.abspath(path))
config.read(path)
config.read(path, encoding='utf-8')
kwargs = {}
for arg in D1_D2_SETUP_ARGS: