This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vlcinsky
Recipients delivrance, dstufft, eric.araujo, paul.moore, steve.dower, tim.golden, vlcinsky, zach.ware
Date 2018-01-25.13:43:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1516887809.92.0.467229070634.issue32223@psf.upfronthosting.co.za>
In-reply-to
Content
The fix shall go to

https://github.com/python/cpython/blob/2812d3d99287c50bab99625d7240bcf1c2e32369/Lib/distutils/dist.py#L406

where `parser.read(filename)`

shall be changed to `parser.read(filename, encoding="utf-8")`

This assumes that the setup.cfg shall be UTF-8 encoded what I thing is correct assumption.

Alternative assumptions are (and I do not find them good):

- assume the file is encoded as current console is (this is not deterministic and is direct cause of this issue)
- let user to specify the encoding somewhere around (this requires extra step and does not bring any value)
History
Date User Action Args
2018-01-25 13:43:30vlcinskysetrecipients: + vlcinsky, paul.moore, tim.golden, eric.araujo, zach.ware, steve.dower, dstufft, delivrance
2018-01-25 13:43:29vlcinskysetmessageid: <1516887809.92.0.467229070634.issue32223@psf.upfronthosting.co.za>
2018-01-25 13:43:29vlcinskylinkissue32223 messages
2018-01-25 13:43:29vlcinskycreate