Issue #12112: packaging reads and writes setup.cfg using UTF-8

This commit is contained in:
Victor Stinner 2011-05-19 18:45:32 +02:00
parent 4c9706bd27
commit dd13dd4bcc
5 changed files with 11 additions and 11 deletions

View file

@ -282,7 +282,7 @@ class Config:
for filename in filenames:
logger.debug(" reading %s", filename)
parser.read(filename)
parser.read(filename, encoding='utf-8')
if os.path.split(filename)[-1] == 'setup.cfg':
self._read_setup_cfg(parser, filename)